1 From afe796ce6e7a4164459009c58d7e60862edb0be3 Mon Sep 17 00:00:00 2001
2 From: Yousong Zhou <yszhou4tech@gmail.com>
3 Date: Tue, 1 Aug 2017 15:21:38 +0800
4 Subject: [PATCH 2/2] syslog with daemon facility instead of kern (0)
7 src/utils.h | 16 ++++++++--------
8 1 file changed, 8 insertions(+), 8 deletions(-)
10 diff --git a/src/utils.h b/src/utils.h
11 index 53f3983..3b624e8 100644
14 @@ -99,14 +99,14 @@ extern int use_syslog;
15 use_tty = isatty(STDERR_FILENO); \
18 -#define USE_SYSLOG(_ident, _cond) \
20 - if (!use_syslog && (_cond)) { \
24 - openlog((_ident), LOG_CONS | LOG_PID, 0); \
26 +#define USE_SYSLOG(_ident, _cond) \
28 + if (!use_syslog && (_cond)) { \
32 + openlog((_ident), LOG_CONS | LOG_PID, LOG_DAEMON); \
36 #define LOGI(format, ...) \