From 57ed3ca445f4f6689e25f790ff9be62912b386c9 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 19 May 2017 09:18:03 +0200 Subject: Tweak systemd diagnostics output --- bbot/diagnostics.cxx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/bbot/diagnostics.cxx b/bbot/diagnostics.cxx index d528221..5954ad1 100644 --- a/bbot/diagnostics.cxx +++ b/bbot/diagnostics.cxx @@ -51,9 +51,10 @@ namespace bbot const fail_end endf; - // Right arrow followed by newline. + // We used the right arrow Unicode character to signal line continuation. + // It only looked cute when displayed properly. // - const char systemd_indent[] = "\xE2\x86\xB2\n"; + const char systemd_indent[] = " \\\n"; void systemd_diagnostics (bool with_critical) @@ -65,9 +66,11 @@ namespace bbot info.indent_ = text.indent_ = systemd_indent; - fail.type_ = with_critical ? "<2>" : "<3>"; - error.type_ = "<3>"; - warn.type_ = "<4>"; + // We don't always see colorized output so keep 'error: ', etc. + // + fail.type_ = with_critical ? "<2>error: " : "<3>error: "; + error.type_ = "<3>error: "; + warn.type_ = "<4>warning: "; info.type_ = "<6>"; trace_type = "<7>"; } -- cgit v1.1