From ef90df4060771c845348ab3a70400ac675373e3d 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 2a055208..c8dd6c62 100644 --- a/lib/core/engine.js +++ b/lib/core/engine.js @@ -34,7 +34,10 @@ class Engine { if (this.interceptLogs || this.interceptLogs === undefined) { this.doInterceptLogs(); } - this.logger.registerAPICall(this.plugins); + // temporary fix + if (this.logger.registerAPICall) { + this.logger.registerAPICall(this.plugins); + } } doInterceptLogs() {