Fix setting persistent logging via CLI

This commit is contained in:
Do Duy 2019-10-23 20:11:17 -07:00 committed by Christian Duerr
parent d76bb0c697
commit b4a09cd945
1 changed files with 2 additions and 0 deletions

View File

@ -285,6 +285,8 @@ impl Options {
config.debug.print_events = self.print_events || config.debug.print_events;
config.debug.log_level = max(config.debug.log_level, self.log_level);
config.debug.ref_test = self.ref_test || config.debug.ref_test;
config.debug.persistent_logging =
self.persistent_logging || config.debug.persistent_logging;
if config.debug.print_events {
config.debug.log_level = max(config.debug.log_level, LevelFilter::Info);