1
0
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:
Szymon Lesisz 2018-09-03 17:47:15 +02:00
parent 2280633b5d
commit 408d85f19a

View File

@ -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),