1
0
mirror of https://git.stamm.me/OpenServer/NodeLogging.git synced 2024-11-22 04:59:24 +00:00

Removing more line output in one message to file

This commit is contained in:
Fabian Stamm 2017-10-19 20:52:26 +02:00
parent e950da73f9
commit 7aeb4037da
3 changed files with 3 additions and 3 deletions

View File

@ -107,7 +107,7 @@ class Logging {
console.log(consoleLogFormat + m + Reset);
}
static writeMessageToFile(message, error) {
Logging.queue.push({ message: message, error: error });
Logging.queue.push({ message: message.replace("\n", ""), error: error });
Logging.checkQueue();
}
static checkQueue() {

File diff suppressed because one or more lines are too long

View File

@ -124,7 +124,7 @@ export class Logging {
}
private static writeMessageToFile(message: string, error?: boolean) {
Logging.queue.push({ message: message, error: error });
Logging.queue.push({ message: message.replace("\n", ""), error: error });
Logging.checkQueue();
}