debug: add a call to debug_parse_levels() to reopen_logs()
authorRalph Boehme <slow@samba.org>
Wed, 12 Dec 2018 11:43:47 +0000 (12:43 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 20 Dec 2018 02:19:26 +0000 (03:19 +0100)
This allows correct refresh of the "log level" setting when reloading config.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/util/debug_s3.c

index 95f2293..479348a 100644 (file)
@@ -34,6 +34,7 @@ bool reopen_logs(void)
                struct debug_settings settings;
 
                debug_set_logfile(lp_logfile(talloc_tos()));
+               debug_parse_levels(lp_log_level(talloc_tos()));
 
                ZERO_STRUCT(settings);
                settings.max_log_size = lp_max_log_size();