don't intercept console error in plugins, causes too much issues; need to research a better way
This commit is contained in:
parent
0060dbe53f
commit
60a617a28e
|
@ -40,11 +40,12 @@ Plugin.prototype.interceptLogs = function(context) {
|
||||||
var self = this;
|
var self = this;
|
||||||
// TODO: this is a bit nasty, figure out a better way
|
// TODO: this is a bit nasty, figure out a better way
|
||||||
context.console = context.console || console;
|
context.console = context.console || console;
|
||||||
context.console.error = function(txt) {
|
|
||||||
// TODO: logger should support an array instead of a single argument
|
//context.console.error = function(txt) {
|
||||||
//self.logger.error.apply(self.logger, arguments);
|
// // TODO: logger should support an array instead of a single argument
|
||||||
self.logger.error(self.name + " > " + txt);
|
// //self.logger.error.apply(self.logger, arguments);
|
||||||
};
|
// self.logger.error(self.name + " > " + txt);
|
||||||
|
//};
|
||||||
context.console.log = function(txt) {
|
context.console.log = function(txt) {
|
||||||
self.logger.info(self.name + " > " + txt);
|
self.logger.info(self.name + " > " + txt);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue