logging: reset style only on tty

This commit is contained in:
Martin Piatka
2022-08-03 13:16:03 +02:00
parent 853015ecec
commit 386ea3ec16
2 changed files with 3 additions and 1 deletions

View File

@@ -130,7 +130,8 @@ void log_msg(int level, const char *format, ...)
}
va_end(ap);
buf.append(TERM_RESET);
if(get_log_output().is_interactive())
buf.append(TERM_RESET);
buf.submit();
}