Use --all journalctl option

journalctl encodes fields with "non-printable" characters,
like unicode control characters, as an array.

This ensures that the tlog MESSAGE field is shown in full using
the journalctl API.
This commit is contained in:
Justin Stephenson 2020-04-23 14:42:19 -04:00
parent 4abce7ae8d
commit 179fb8c5e6

View file

@ -98,7 +98,7 @@
options.count = null; options.count = null;
} }
var cmd = [ "journalctl", "-q", "--output=json" ]; var cmd = [ "journalctl", "--all", "-q", "--output=json" ];
if (!options.count) if (!options.count)
cmd.push("--no-tail"); cmd.push("--no-tail");
else else