diff options
author | Roger Dingledine <arma@torproject.org> | 2004-11-20 07:33:55 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-11-20 07:33:55 +0000 |
commit | dd19cf6ba3fbde4959c0ae88f4cb5a384b0b077c (patch) | |
tree | 604e39ede08a9ee5e2fa4959a0df1483eacd3f0f /src/common/log.c | |
parent | a30a5bce0fab1f5a16f454038666292bbd6c7740 (diff) | |
download | tor-dd19cf6ba3fbde4959c0ae88f4cb5a384b0b077c.tar.gz tor-dd19cf6ba3fbde4959c0ae88f4cb5a384b0b077c.zip |
kill -USR2 now moves all logs to loglevel debug
plus fix some typos
svn:r2914
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 |