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 e10641b1a0
commit ef90df4060

View File

@ -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() {