add temporary fix to cases where logger doesnt have certain methods

This commit is contained in:
Iuri Matias 2018-04-24 15:34:54 -04:00
parent a43d1dc5ff
commit 58c77019c4
1 changed files with 4 additions and 1 deletions

View File

@ -35,7 +35,10 @@ class Engine {
if (this.interceptLogs || this.interceptLogs === undefined) { if (this.interceptLogs || this.interceptLogs === undefined) {
utils.interceptLogs(console, this.logger); utils.interceptLogs(console, this.logger);
} }
this.logger.registerAPICall(this.plugins); // temporary fix
if (this.logger.registerAPICall) {
this.logger.registerAPICall(this.plugins);
}
} }
registerModule(moduleName, options) { registerModule(moduleName, options) {