diff options
Diffstat (limited to 'src/common/log.c')
-rw-r--r-- | src/common/log.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/common/log.c b/src/common/log.c index 49ad0bd525..8c4ff3adc5 100644 --- a/src/common/log.c +++ b/src/common/log.c @@ -441,6 +441,15 @@ int get_min_log_level(void) return min; } +/** Switch all logs to output at most verbose level. */ +void switch_logs_debug(void) +{ + logfile_t *lf; + for (lf = logfiles; lf; lf=lf->next) { + lf->loglevel = LOG_DEBUG; + } +} + /* Local Variables: mode:c |