We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 437e19f commit 2a4aa6eCopy full SHA for 2a4aa6e
1 file changed
server/proxy_server/main.cpp
@@ -406,10 +406,20 @@ and/or open issues at https://github.com/Jackarain/proxy)"
406
po::notify(vm);
407
}
408
409
- if (disable_logs || log_dir.empty())
410
- xlogger::toggle_write_logging(false);
+ if (disable_logs && log_dir.empty())
+ {
411
+ xlogger::turnoff_logging();
412
+ }
413
else
- xlogger::init_logging(log_dir);
414
415
+ if (log_dir.empty())
416
+ xlogger::toggle_write_logging(false);
417
+ else
418
+ xlogger::init_logging(log_dir);
419
+
420
+ if (disable_logs)
421
+ xlogger::toggle_console_logging(false);
422
423
424
print_args(argc, argv, vm);
425
0 commit comments