Commit 1d97b7cfd982e1f71121267e91955e70392b36a8

kanoi 2014-04-05T08:55:58

Merge pull request #576 from kanoi/master syslog requires a facility

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/logging.c b/logging.c
index b242cb6..b75f215 100644
--- a/logging.c
+++ b/logging.c
@@ -54,7 +54,7 @@ void _applog(int prio, const char *str, bool force)
 {
 #ifdef HAVE_SYSLOG_H
 	if (use_syslog) {
-		syslog(prio, "%s", str);
+		syslog(LOG_LOCAL0 | prio, "%s", str);
 	}
 #else
 	if (0) {}