Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

Commit

Permalink
Fix: nodejs pushing unreadable messages to journal
Browse files Browse the repository at this point in the history
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 <bruno.bottazzini@intel.com>
  • Loading branch information
Bruno Bottazzini committed Nov 5, 2015
1 parent d71c278 commit d0f3913
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d0f3913

Please sign in to comment.