From 58c77019c42817ad42a362fcf632424c398eb56f Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Tue, 24 Apr 2018 15:34:54 -0400 Subject: [PATCH] add temporary fix to cases where logger doesnt have certain methods --- lib/core/engine.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/core/engine.js b/lib/core/engine.js index 34a0041f..5cc976b1 100644 --- a/lib/core/engine.js +++ b/lib/core/engine.js @@ -35,7 +35,10 @@ class Engine { if (this.interceptLogs || this.interceptLogs === undefined) { utils.interceptLogs(console, this.logger); } - this.logger.registerAPICall(this.plugins); + // temporary fix + if (this.logger.registerAPICall) { + this.logger.registerAPICall(this.plugins); + } } registerModule(moduleName, options) {