mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
log config: Set safelogging_changed even if we aren't running Tor.
This commit is contained in:
parent
89c355b386
commit
acb97cfa68
@ -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));
|
log_transaction_t *xn = tor_malloc_zero(sizeof(log_transaction_t));
|
||||||
xn->old_min_log_level = get_min_log_level();
|
xn->old_min_log_level = get_min_log_level();
|
||||||
|
xn->safelogging_changed = !old_options ||
|
||||||
|
old_options->SafeLogging_ != options->SafeLogging_;
|
||||||
|
|
||||||
if (! running_tor)
|
if (! running_tor)
|
||||||
goto done;
|
goto done;
|
||||||
@ -1822,9 +1824,6 @@ options_start_log_transaction(const or_options_t *old_options,
|
|||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
xn->safelogging_changed = !old_options ||
|
|
||||||
old_options->SafeLogging_ != options->SafeLogging_;
|
|
||||||
|
|
||||||
xn->logs_initialized = true;
|
xn->logs_initialized = true;
|
||||||
|
|
||||||
done:
|
done:
|
||||||
|
Loading…
Reference in New Issue
Block a user