From d0f3913d792e7a8bedeca5624109cfabb29db776 Mon Sep 17 00:00:00 2001 From: Bruno Bottazzini Date: Thu, 5 Nov 2015 17:25:58 -0200 Subject: [PATCH] Fix: nodejs pushing unreadable messages to journal Node is pushing unreadable messages on journalctl containing only array of numbers such as: "[ 27, 91, 48, 109, 112...]" Since after some tests this is the only message the node send to the journal, it was decided to remove any message coming from the syslog called node. This will no affect any warn/error messages that comes from the server. Signed-off-by: Bruno Bottazzini --- server/tools.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/tools.js b/server/tools.js index 2a21b51..7bb63de 100644 --- a/server/tools.js +++ b/server/tools.js @@ -121,7 +121,9 @@ module.exports = function () { line_block = line_block.replace("-- Reboot --",""); } json_block = JSON.parse(line_block); - journald.push(json_block); + if(json_block.SYSLOG_IDENTIFIER !== "node") { + journald.push(json_block); + } } catch (err) { console.log(err); console.log(line_block);