Skip to content

Commit

Permalink
Fix: allows the user to specify a log level that is output to syslog
Browse files Browse the repository at this point in the history
  • Loading branch information
yuusuke committed Jul 17, 2014
1 parent 026944e commit 4f66e6a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/common/logging.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4f66e6a

Please sign in to comment.