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 d0fb80e commit 1435ffcCopy full SHA for 1435ffc
src/index.js
@@ -69,14 +69,14 @@ 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 = {
76
...defaults,
77
...options,
78
};
79
+ // Return if 'console' object is not defined
+ if (noLogger(loggerOptions)) return emptyLogger();
+
80
return ({ getState }) => next => (action) => {
81
// Exit early if predicate function returns 'false'
82
if (shouldNotLog(getState, action)) return next(action);
0 commit comments