🐛 logging: temporary fix for info,warn and debug logging (#7533)

- GhostLogging always expected an stdout stream
- so it was not possible to use production env with GhostLogger, because an error was happening
- temporary fix!
This commit is contained in:
Katharina Irrgang 2016-10-10 18:03:34 +02:00 committed by Hannah Wolfe
parent 64ac53cef0
commit 29a48d0856

View File

@ -173,6 +173,10 @@ GhostLogger.prototype.info = function info() {
print += ' ';
});
if (!this.loggers.stdout) {
return;
}
this.loggers.stdout.log.info(print);
};
@ -184,10 +188,18 @@ GhostLogger.prototype.warn = function warn() {
print += ' ';
});
if (!this.loggers.stdout) {
return;
}
this.loggers.stdout.log.warn(print);
};
GhostLogger.prototype.debug = function debug(options) {
if (!this.loggers.stdout) {
return;
}
this.loggers.stdout.log.debug(options);
};