Only print format logging when the flag is set, even if also sending to log_debug.

pull/1644/head
nicm 2019-03-15 10:22:57 +00:00
parent 672c49d512
commit f6d34f066c
1 changed files with 1 additions and 1 deletions

View File

@ -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);