From 023d8f7f5fef13b27ea01c5da0e811e5b2ce0117 Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Thu, 24 May 2018 16:34:27 -0400 Subject: [PATCH] fix logs --- lib/core/engine.js | 2 +- lib/process/processWrapper.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/core/engine.js b/lib/core/engine.js index 66d5f579..440dc695 100644 --- a/lib/core/engine.js +++ b/lib/core/engine.js @@ -45,7 +45,7 @@ class Engine { }, 0); if (this.interceptLogs || this.interceptLogs === undefined) { - // this.doInterceptLogs(); + this.doInterceptLogs(); } } diff --git a/lib/process/processWrapper.js b/lib/process/processWrapper.js index 4bb093c9..594eaa6f 100644 --- a/lib/process/processWrapper.js +++ b/lib/process/processWrapper.js @@ -30,6 +30,7 @@ class ProcessWrapper { context.console.log = this._log.bind(this, 'log'); context.console.warn = this._log.bind(this, 'warn'); + context.console.error = this._log.bind(this, 'error'); context.console.info = this._log.bind(this, 'info'); context.console.debug = this._log.bind(this, 'debug'); context.console.trace = this._log.bind(this, 'trace');