diff options
author | Dimitri Staessens <[email protected]> | 2022-03-20 10:51:49 +0100 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2022-03-30 14:56:39 +0200 |
commit | 3b179d0ec9b85133ef412bae26c76eb74b75ea67 (patch) | |
tree | 3c3bce972d3b7b0c3a671fc12eaf6408368d7274 /include | |
parent | b248af5ee14b6910c6b21a29fb8ebe2126a8f68e (diff) | |
download | ouroboros-3b179d0ec9b85133ef412bae26c76eb74b75ea67.tar.gz ouroboros-3b179d0ec9b85133ef412bae26c76eb74b75ea67.zip |
lib: Don't log prefix in syslog
Logging the prefix in the system logs has a lot of duplication, as the
syslog already includes the name of the daemon. Maybe we should
deprecate logging to stdout and focus on the syslog, revise things a
bit to print internal component names if they are defined. For now, I
think it's less annoying to read the syslog without the prefixes.
Signed-off-by: Dimitri Staessens <[email protected]>
Signed-off-by: Sander Vrijders <[email protected]>
Diffstat (limited to 'include')
-rw-r--r-- | include/ouroboros/logs.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/ouroboros/logs.h b/include/ouroboros/logs.h index bffba477..413ac30e 100644 --- a/include/ouroboros/logs.h +++ b/include/ouroboros/logs.h @@ -51,8 +51,7 @@ extern bool log_syslog; #define __olog(CLR, LVL, SYSLVL, ...) \ do { \ if (log_syslog) { \ - syslog(SYSLVL, OUROBOROS_PREFIX ": " \ - __VA_ARGS__); \ + syslog(SYSLVL, __VA_ARGS__); \ } else { \ printf(CLR "==%05d== " OUROBOROS_PREFIX \ "(" LVL "): ", getpid()); \ |