aboutsummaryrefslogtreecommitdiff
path: root/src/app/config
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-11-20 08:26:37 -0500
committerNick Mathewson <nickm@torproject.org>2019-11-20 09:26:47 -0500
commitacb97cfa689577b9d3a22eab7673bda6e47918f0 (patch)
tree4a3bcafec8cd7995a46c373337f6789c2b2b89f9 /src/app/config
parent89c355b38601e0eda4e999219946bf2431d5de51 (diff)
downloadtor-acb97cfa689577b9d3a22eab7673bda6e47918f0.tar.gz
tor-acb97cfa689577b9d3a22eab7673bda6e47918f0.zip
log config: Set safelogging_changed even if we aren't running Tor.
Diffstat (limited to 'src/app/config')
-rw-r--r--src/app/config/config.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/app/config/config.c b/src/app/config/config.c
index 8c5a53209c..06e45361cc 100644
--- a/src/app/config/config.c
+++ b/src/app/config/config.c
@@ -1808,6 +1808,8 @@ options_start_log_transaction(const or_options_t *old_options,
log_transaction_t *xn = tor_malloc_zero(sizeof(log_transaction_t));
xn->old_min_log_level = get_min_log_level();
+ xn->safelogging_changed = !old_options ||
+ old_options->SafeLogging_ != options->SafeLogging_;
if (! running_tor)
goto done;
@@ -1822,9 +1824,6 @@ options_start_log_transaction(const or_options_t *old_options,
goto done;
}
- xn->safelogging_changed = !old_options ||
- old_options->SafeLogging_ != options->SafeLogging_;
-
xn->logs_initialized = true;
done: