aboutsummaryrefslogtreecommitdiff
path: root/bbot/diagnostics
diff options
context:
space:
mode:
Diffstat (limited to 'bbot/diagnostics')
-rw-r--r--bbot/diagnostics12
1 files changed, 12 insertions, 0 deletions
diff --git a/bbot/diagnostics b/bbot/diagnostics
index 81cedcd..60df57c 100644
--- a/bbot/diagnostics
+++ b/bbot/diagnostics
@@ -149,6 +149,18 @@ namespace bbot
extern fail_mark fail;
extern const fail_end endf;
+
+ // Map to systemd severity prefixes (see sd-daemon(3) for details). Note
+ // that here we assume we will never have location (like file name which
+ // would end up being before the prefix).
+ //
+ // 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.
+ //
+ void
+ systemd_diagnostics (bool with_critical);
}
#endif // BBOT_DIAGNOSTICS