mirror of
https://github.com/tmux/tmux.git
synced 2025-01-07 16:28:48 +00:00
Only print format logging when the flag is set, even if also sending to log_debug.
This commit is contained in:
parent
672c49d512
commit
f6d34f066c
2
format.c
2
format.c
@ -231,7 +231,7 @@ format_log1(struct format_tree *ft, const char *from, const char *fmt, ...)
|
|||||||
va_end(ap);
|
va_end(ap);
|
||||||
|
|
||||||
log_debug("%s: %s", from, s);
|
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);
|
cmdq_print(ft->item, "#%.*s%s", ft->loop, spaces, s);
|
||||||
|
|
||||||
free(s);
|
free(s);
|
||||||
|
Loading…
Reference in New Issue
Block a user