diff options
Diffstat (limited to 'src/common/log.c')
-rw-r--r-- | src/common/log.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/log.c b/src/common/log.c index 8f55694ace..0aa78e4e28 100644 --- a/src/common/log.c +++ b/src/common/log.c @@ -571,10 +571,12 @@ change_callback_log_severity(int loglevelMin, int loglevelMax, log_callback cb) { logfile_t *lf; + log_severity_list_t severities; + set_log_severity_config(loglevelMin, loglevelMax, &severities); LOCK_LOGS(); for (lf = logfiles; lf; lf = lf->next) { if (lf->callback == cb) { - set_log_severity_config(loglevelMin, loglevelMax, lf->severities); + memcpy(lf->severities, &severities, sizeof(severities)); } } _log_global_min_severity = get_min_log_level(); |