mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03:00
🐛 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:
parent
64ac53cef0
commit
29a48d0856
@ -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);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user