mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 15:10:48 +01:00
Make LogTimeGranularity respect validate_only
This commit is contained in:
parent
ed45bc198f
commit
152c9cba65
1 changed files with 4 additions and 2 deletions
|
@ -4364,9 +4364,11 @@ options_init_logs(or_options_t *options, int validate_only)
|
|||
"divisor or a multiple of 1 second. Changing to "
|
||||
"'%d'.",
|
||||
options->LogTimeGranularity, granularity);
|
||||
set_log_time_granularity(granularity);
|
||||
if (!validate_only)
|
||||
set_log_time_granularity(granularity);
|
||||
} else {
|
||||
set_log_time_granularity(options->LogTimeGranularity);
|
||||
if (!validate_only)
|
||||
set_log_time_granularity(options->LogTimeGranularity);
|
||||
}
|
||||
|
||||
ok = 1;
|
||||
|
|
Loading…
Add table
Reference in a new issue