We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6c039a commit ace19b8Copy full SHA for ace19b8
src/index.js
@@ -25,8 +25,8 @@ function directlyApplied(options) {
25
return !!(options.getState && options.dispatch);
26
}
27
28
-function noLogger(options) {
29
- return !options.logger;
+function hasLogger(options) {
+ return options.logger;
30
31
32
function shouldNotLog({ predicate }, getState, action) {
@@ -72,7 +72,7 @@ function createLogger(options = {}) {
72
const loggerOptions = Object.assign({}, defaults, options);
73
74
// Return if 'console' object is not defined
75
- if (noLogger(loggerOptions)) return emptyLogger();
+ if (!hasLogger(loggerOptions)) return emptyLogger();
76
77
return ({ getState }) => next => (action) => {
78
// Exit early if predicate function returns 'false'
0 commit comments