client: if event log line limit is set to 0 (unlimited) in cc_config.xml, display "Config: event log limit disabled" in event log at startup

This commit is contained in:
Charlie Fenton 2013-06-13 01:53:25 -07:00
parent c8bd0632fa
commit 19c53f388f
1 changed files with 7 additions and 3 deletions

View File

@ -175,9 +175,13 @@ void CONFIG::show() {
msg_printf(NULL, MSG_INFO, "Config: fetch minimal work");
}
if (max_event_log_lines != DEFAULT_MAX_EVENT_LOG_LINES) {
if (max_event_log_lines) {
msg_printf(NULL, MSG_INFO,
"Config: event log limit %d lines", max_event_log_lines
);
} else {
msg_printf(NULL, MSG_INFO, "Config: event log limit disabled");
}
}
if (fetch_on_update) {
msg_printf(NULL, MSG_INFO, "Config: fetch on update");