aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-05-19 09:18:03 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-05-19 09:18:03 +0200
commit57ed3ca445f4f6689e25f790ff9be62912b386c9 (patch)
treee26bfa85dfd3b9c74652c4d8e579ec7b15ecdd5b
parent7663a35e4f676e4f1f140e8ad816e58e6705d90b (diff)
Tweak systemd diagnostics output
-rw-r--r--bbot/diagnostics.cxx13
1 files 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>";
}