Trim message before sending to client
This commit is contained in:
parent
ec99372d92
commit
f472327ea0
1 changed files with 1 additions and 1 deletions
|
|
@ -421,7 +421,7 @@ app.get(
|
|||
} else {
|
||||
// Inspect message and attempt to assign a RFC 5424 Syslog Protocol level
|
||||
let level;
|
||||
let message = chunk.toString();
|
||||
let message = chunk.toString().trim();
|
||||
let ucMsg = chunk.toString().toUpperCase();
|
||||
if (ucMsg.includes("DEBUG")) {
|
||||
level = "debug";
|
||||
|
|
|
|||
Loading…
Reference in a new issue