Commit ff89fd199bfda27370ffd1067fbf7ed7dd0b0fd6

kanoi 2014-04-15T10:20:18

Merge pull request #577 from kanoi/master syslog requires a facility ... in more than one place

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/logging.c b/logging.c
index b75f215..1fdf48a 100644
--- a/logging.c
+++ b/logging.c
@@ -91,7 +91,7 @@ void _simplelog(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) {}