Permalink
Browse files

Merge pull request #560 from yuusuke/fix_log

Fix: allows the user to specify a log level that is output to syslog
  • Loading branch information...
beekhof committed Jul 18, 2014
2 parents 026944e + 4f66e6a commit 5749ee767819b77db1375a859cd3e6cdff398378
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/common/logging.c
View
@@ -761,6 +761,7 @@ crm_log_init(const char *entity, uint8_t level, gboolean daemon, gboolean to_std
syslog_priority = daemon_option("logpriority");
if(syslog_priority) {
int priority = crm_priority2int(syslog_priority);
crm_log_priority = priority;
qb_log_filter_ctl(QB_LOG_SYSLOG, QB_LOG_FILTER_ADD, QB_LOG_FILTER_FILE, "*", priority);
} else {
qb_log_filter_ctl(QB_LOG_SYSLOG, QB_LOG_FILTER_ADD, QB_LOG_FILTER_FILE, "*", LOG_NOTICE);

0 comments on commit 5749ee7

Please sign in to comment.