only return one logger instance and create log folder on fetch

Relates #1982
pull/1991/head
Audric Ackermann 3 years ago
parent 01392b1c99
commit 738fc63a49
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -34,6 +34,10 @@ function initialize() {
mkdirp.sync(logPath);
return cleanupLogs(logPath).then(() => {
if (logger) {
return;
}
const logFile = path.join(logPath, 'log.log');
logger = bunyan.createLogger({

Loading…
Cancel
Save