X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/b61f81bc4c102d06f13fd68e4a73ab8fdfdb3cf5..39439af6f686d26bc94f8b8c1c7a1965564b4a47:/unix/uxcons.c diff --git a/unix/uxcons.c b/unix/uxcons.c index ce1a4923..73126c02 100644 --- a/unix/uxcons.c +++ b/unix/uxcons.c @@ -321,10 +321,12 @@ void console_provide_logctx(void *logctx) void logevent(void *frontend, const char *string) { struct termios cf; - premsg(&cf); + if ((flags & FLAG_STDERR) && (flags & FLAG_VERBOSE)) + premsg(&cf); if (console_logctx) log_eventlog(console_logctx, string); - postmsg(&cf); + if ((flags & FLAG_STDERR) && (flags & FLAG_VERBOSE)) + postmsg(&cf); } /*