From eeb13dba74a27165ce81af9b90885e25f3c3d12f Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Tue, 23 Jan 2018 09:44:44 +0100 Subject: [PATCH] Toggle silent mode (progress) when toggling debug mode Starting in debug mode and disabling debug at runtime did not exhibit the same behavior as if starting in normal mode and toggling debug mode at runtime. This patch adds toggling of silent mode (progress output) to runtime debug toggling. Signed-off-by: Joachim Nilsson --- src/log.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/log.c b/src/log.c index 6e2bb3b5..f66c2805 100644 --- a/src/log.c +++ b/src/log.c @@ -122,6 +122,9 @@ void log_debug(void) } log_open(); + /* Also toggle silent mode (progress) */ + log_silent(); + logit(LOG_NOTICE, "Debug mode %s", debug ? "enabled" : "disabled"); }