We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08f504b commit 0e9cbeeCopy full SHA for 0e9cbee
src/index.js
@@ -69,11 +69,11 @@ function createLogger(options = {}) {
69
return emptyLogger();
70
}
71
72
- // Return if 'console' object is not defined
73
- if (noLogger(options)) return emptyLogger();
74
-
75
const loggerOptions = Object.assign({}, defaults, options):
76
+ // Return if 'console' object is not defined
+ if (noLogger(loggerOptions)) return emptyLogger();
+
77
return ({ getState }) => next => (action) => {
78
// Exit early if predicate function returns 'false'
79
if (shouldNotLog(getState, action)) return next(action);
0 commit comments