fix(client): log to console saga

This commit is contained in:
Valeriy S
2018-12-10 08:22:32 +03:00
committed by Stuart Taylor
parent a50a048ee7
commit 0775766702
3 changed files with 23 additions and 28 deletions

View File

@@ -77,7 +77,7 @@ const mountFrame = document => ({ element, ...rest }) => {
const buildProxyConsole = proxyLogger => ctx => {
const oldLog = ctx.window.console.log.bind(ctx.window.console);
ctx.window.console.log = function proxyConsole(...args) {
proxyLogger.next(args);
proxyLogger.put(args);
return oldLog(...args);
};
return ctx;