From f6d34f066cd872a981196027477a749f58849a02 Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 15 Mar 2019 10:22:57 +0000 Subject: [PATCH] Only print format logging when the flag is set, even if also sending to log_debug. --- format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/format.c b/format.c index 93c11651..d1df2b54 100644 --- a/format.c +++ b/format.c @@ -231,7 +231,7 @@ format_log1(struct format_tree *ft, const char *from, const char *fmt, ...) va_end(ap); log_debug("%s: %s", from, s); - if (ft->item != NULL) + if (ft->item != NULL && (ft->flags & FORMAT_VERBOSE)) cmdq_print(ft->item, "#%.*s%s", ft->loop, spaces, s); free(s);