From: Sebastian Harl Date: Sun, 29 Jun 2014 16:01:48 +0000 (+0200) Subject: syslog plugin: Don't log DEBUG messages for now. X-Git-Tag: sysdb-0.2.0~17 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b12905a91a541d77dc46d4a659708b4ce1db22af;p=sysdb.git syslog plugin: Don't log DEBUG messages for now. --- 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 */