From b12905a91a541d77dc46d4a659708b4ce1db22af Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Sun, 29 Jun 2014 18:01:48 +0200 Subject: [PATCH] syslog plugin: Don't log DEBUG messages for now. --- src/plugins/syslog.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/syslog.c b/src/plugins/syslog.c index f1c3e55..248ba8e 100644 --- a/src/plugins/syslog.c +++ b/src/plugins/syslog.c @@ -59,6 +59,9 @@ static int sdb_syslog_log(int prio, const char *msg, sdb_object_t __attribute__((unused)) *user_data) { + /* XXX: make the log-level configurable */ + if (prio >= SDB_LOG_DEBUG) + return 0; syslog(SDB_LOG_PRIO_TO_SYSLOG(prio), "%s", msg); return 0; } /* sdb_syslog_log */ -- 2.30.2