summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: eead68b)
raw | patch | inline | side by side (parent: eead68b)
author | Sebastian Harl <sh@tokkee.org> | |
Sun, 29 Jun 2014 16:01:48 +0000 (18:01 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Sun, 29 Jun 2014 16:01:48 +0000 (18:01 +0200) |
src/plugins/syslog.c | patch | blob | history |
diff --git a/src/plugins/syslog.c b/src/plugins/syslog.c
index f1c3e55fb5de3ffb71a28b9be3b9d37848a0f20a..248ba8ef5c1d208c9a3c0292cd95e4bfdae7ba01 100644 (file)
--- a/src/plugins/syslog.c
+++ b/src/plugins/syslog.c
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 */