mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-28 03:08:30 +00:00
logger is back
This commit is contained in:
parent
2280633b5d
commit
408d85f19a
14
src/store.js
14
src/store.js
@ -37,10 +37,22 @@ if (process.env.NODE_ENV === 'development') {
|
||||
// return pass.length === 0;
|
||||
// };
|
||||
|
||||
const logger = createLogger({
|
||||
level: 'info',
|
||||
predicate: excludeLogger,
|
||||
collapsed: true,
|
||||
});
|
||||
|
||||
const devToolsExtension: ?Function = window.devToolsExtension;
|
||||
if (typeof devToolsExtension === 'function') {
|
||||
enhancers.push(devToolsExtension());
|
||||
}
|
||||
|
||||
composedEnhancers = compose(
|
||||
applyMiddleware(...middleware, ...services),
|
||||
applyMiddleware(logger, ...middleware, ...services),
|
||||
...enhancers,
|
||||
);
|
||||
|
||||
} else {
|
||||
composedEnhancers = compose(
|
||||
applyMiddleware(...middleware, ...services),
|
||||
|
Loading…
Reference in New Issue
Block a user