From 3a73f6612aad051e0d9a9228a136e06720748c16 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 17 Oct 2019 12:30:52 -0400 Subject: 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. --- src/app/main/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/app/main') 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; -- cgit v1.2.3-54-g00ecf