aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-08-28 20:41:00 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-08-28 20:41:00 +0200
commitef6399f38704fbaff1b195ab896a03fbb733b951 (patch)
treebf26c35af3c503ff2929c571fd423c9857394019
parent6207abf1b47415d0b378ea5004c655b51516e48f (diff)
Use 'fatal:' instead of 'error:' for hard failures in agent
-rw-r--r--bbot/diagnostics.cxx2
-rw-r--r--bbot/diagnostics.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/bbot/diagnostics.cxx b/bbot/diagnostics.cxx
index b5bd9f8..7ba84c2 100644
--- a/bbot/diagnostics.cxx
+++ b/bbot/diagnostics.cxx
@@ -68,7 +68,7 @@ namespace bbot
// We don't always see colorized output so keep 'error: ', etc.
//
- fail.type_ = with_critical ? "<2>error: " : "<3>error: ";
+ fail.type_ = with_critical ? "<2>fatal: " : "<3>error: ";
error.type_ = "<3>error: ";
warn.type_ = "<4>warning: ";
info.type_ = "<6>";
diff --git a/bbot/diagnostics.hxx b/bbot/diagnostics.hxx
index 1e349ec..99d3df4 100644
--- a/bbot/diagnostics.hxx
+++ b/bbot/diagnostics.hxx
@@ -181,7 +181,7 @@ namespace bbot
// If with_critical is true, then distinguish between fail (critical error,
// daemon terminates) and error (non-fatal error, daemon continues to run).
// Note that this means we should be careful not to use fail to report
- // normal errors and vice-versa.
+ // normal errors and vice-versa (see fail hard).
//
void
systemd_diagnostics (bool with_critical);