diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-10-17 12:30:52 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-10-17 12:30:52 -0400 |
commit | 3a73f6612aad051e0d9a9228a136e06720748c16 (patch) | |
tree | bd67b0191ff4ee96ac8db9e4aaa4519ca7c94849 /src/app | |
parent | 800b823c292009dd232d9758d1b40c61072e4433 (diff) | |
download | tor-3a73f6612aad051e0d9a9228a136e06720748c16.tar.gz tor-3a73f6612aad051e0d9a9228a136e06720748c16.zip |
Replace add_temp_log() with add_default_log().
We used to have this function so that we could mark our initial
log-to-stdout as specifically temporary so that we would delete it
once regular logs were configured. But it's no longer necessary to
mark these logs as temporary, since we now use a mark-and-sweep
process to ensure that _all_ not-configured logs are closed when we
change our configuration.
Instead, this function will be the basis of a refactoring in how we
handle default logs.
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/main/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app/main/main.c b/src/app/main/main.c index 2d75793366..e6bd4f30b2 100644 --- a/src/app/main/main.c +++ b/src/app/main/main.c @@ -564,11 +564,11 @@ tor_init(int argc, char *argv[]) break; case QUIET_HUSH: /* --hush: log at warning or higher. */ - add_temp_log(LOG_WARN); + add_default_log(LOG_WARN); break; case QUIET_NONE: /* fall through */ default: - add_temp_log(LOG_NOTICE); + add_default_log(LOG_NOTICE); } quiet_level = quiet; |