From 2d8dc6c905dbde7da2d324a559d08af77231d062 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 18 Apr 2017 13:50:18 +0200 Subject: Add --systemd-daemon option to worker --- bbot/diagnostics | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'bbot/diagnostics') 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 -- cgit v1.1