From a2c7f07f3d6e3e6b9144fb097e4fc190aad867fb 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 1c90f693..0b458411 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');