From 60a617a28e490e5b28916208575e2491eb2c8d04 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Sun, 26 Feb 2017 18:47:52 -0500 Subject: [PATCH] don't intercept console error in plugins, causes too much issues; need to research a better way --- lib/core/plugin.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/core/plugin.js b/lib/core/plugin.js index 1b579c85..e44f6f1f 100644 --- a/lib/core/plugin.js +++ b/lib/core/plugin.js @@ -40,11 +40,12 @@ Plugin.prototype.interceptLogs = function(context) { var self = this; // TODO: this is a bit nasty, figure out a better way context.console = context.console || console; - context.console.error = function(txt) { - // TODO: logger should support an array instead of a single argument - //self.logger.error.apply(self.logger, arguments); - self.logger.error(self.name + " > " + txt); - }; + + //context.console.error = function(txt) { + // // TODO: logger should support an array instead of a single argument + // //self.logger.error.apply(self.logger, arguments); + // self.logger.error(self.name + " > " + txt); + //}; context.console.log = function(txt) { self.logger.info(self.name + " > " + txt); };