diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-04-18 13:50:18 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-04-18 13:50:18 +0200 |
commit | 2d8dc6c905dbde7da2d324a559d08af77231d062 (patch) | |
tree | 035b4f863d8e1108b185c9f7ddda41a4eeb8ddce /bbot/diagnostics | |
parent | 2c8ca08d0407d61af1a00152e3a120a6eff938f9 (diff) |
Add --systemd-daemon option to worker
Diffstat (limited to 'bbot/diagnostics')
-rw-r--r-- | bbot/diagnostics | 12 |
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 |