mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 13:43:47 +01:00
Make LogTimeGranularity respect validate_only
This commit is contained in:
parent
ed45bc198f
commit
152c9cba65
@ -4364,8 +4364,10 @@ options_init_logs(or_options_t *options, int validate_only)
|
|||||||
"divisor or a multiple of 1 second. Changing to "
|
"divisor or a multiple of 1 second. Changing to "
|
||||||
"'%d'.",
|
"'%d'.",
|
||||||
options->LogTimeGranularity, granularity);
|
options->LogTimeGranularity, granularity);
|
||||||
|
if (!validate_only)
|
||||||
set_log_time_granularity(granularity);
|
set_log_time_granularity(granularity);
|
||||||
} else {
|
} else {
|
||||||
|
if (!validate_only)
|
||||||
set_log_time_granularity(options->LogTimeGranularity);
|
set_log_time_granularity(options->LogTimeGranularity);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user