syslog with daemon facility instead of kern (0)

This commit is contained in:
Yousong Zhou
2017-08-01 22:59:38 -07:00
committed by Max Lv
parent db1728c76d
commit 7c5416b441
+8 -8
View File
@@ -99,14 +99,14 @@ extern int use_syslog;
use_tty = isatty(STDERR_FILENO); \
} while (0)
#define USE_SYSLOG(_ident, _cond) \
do { \
if (!use_syslog && (_cond)) { \
use_syslog = 1; \
} \
if (use_syslog) { \
openlog((_ident), LOG_CONS | LOG_PID, 0); \
} \
#define USE_SYSLOG(_ident, _cond) \
do { \
if (!use_syslog && (_cond)) { \
use_syslog = 1; \
} \
if (use_syslog) { \
openlog((_ident), LOG_CONS | LOG_PID, LOG_DAEMON); \
} \
} while (0)
#define LOGI(format, ...) \