From 3b179d0ec9b85133ef412bae26c76eb74b75ea67 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Sun, 20 Mar 2022 10:51:49 +0100 Subject: 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 Signed-off-by: Sander Vrijders --- include/ouroboros/logs.h | 3 +-- 1 file changed, 1 insertion(+), 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()); \ -- cgit v1.2.3