Compare commits

..

No commits in common. "89bac782137f9190a5e5dc1eddb3f07576ec9f00" and "5664f19d0308b9d9abfb8c45c815093a3ca56b90" have entirely different histories.

2 changed files with 5 additions and 5 deletions

View File

@ -459,16 +459,16 @@ class RequestLogger {
fields, fields,
msg, msg,
}; };
this.entries.push(logEntry);
if (LogLevel.shouldLog(level, this.dumpThreshold)) { if (LogLevel.shouldLog(level, this.dumpThreshold)) {
this.entries.push(logEntry);
this.entries.forEach(entry => { this.entries.forEach(entry => {
this.doLogIO(entry); this.doLogIO(entry);
}); });
this.entries = [];
} else if (LogLevel.shouldLog(level, this.logLevel)) { } else if (LogLevel.shouldLog(level, this.logLevel)) {
this.doLogIO(logEntry); this.doLogIO(logEntry);
} }
this.entries = [];
} }
/** /**

View File

@ -69,8 +69,8 @@ class SimpleLogger {
logFields.hostname = this.hostname; logFields.hostname = this.hostname;
logFields.pid = process.pid; logFields.pid = process.pid;
const fieldsStringified = safeStringify(logFields); this.streams.forEach(s => s.stream
this.streams.forEach(s => s.stream.write(`${fieldsStringified}\n`)); .write(`${safeStringify(logFields)}\n`));
} }
info(fields, message) { info(fields, message) {