Ensure no debug output is leaking into the output of pihole-FTL --config ... even when debug.config = true is set

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER 2023-02-05 17:00:06 +01:00
parent 9833fe1af0
commit 8f33706743
No known key found for this signature in database
GPG Key ID: 00135ACBD90B28DD
1 changed files with 3 additions and 1 deletions

View File

@ -234,8 +234,10 @@ void parse_args(int argc, char* argv[])
{
// Enable stdout printing
cli_mode = true;
log_ctrl(false, true);
log_ctrl(false, false);
readFTLconf(&config, false);
log_ctrl(false, true);
set_all_debug(false);
if(argc == 3)
exit(get_config_from_CLI(argv[2]) ? EXIT_SUCCESS : EXIT_FAILURE);
else if(argc == 4)