Code

syslog plugin: Don't log DEBUG messages for now.
authorSebastian Harl <sh@tokkee.org>
Sun, 29 Jun 2014 16:01:48 +0000 (18:01 +0200)
committerSebastian Harl <sh@tokkee.org>
Sun, 29 Jun 2014 16:01:48 +0000 (18:01 +0200)
src/plugins/syslog.c

index f1c3e55fb5de3ffb71a28b9be3b9d37848a0f20a..248ba8ef5c1d208c9a3c0292cd95e4bfdae7ba01 100644 (file)
@@ -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 */