X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=unix%2Fuxcons.c;h=73126c021b5024cf475aef8ed99d4ebbf309f472;hb=a46aac386b20e6474d45f701a96d7afc8cfdafec;hp=ce1a49238b4547f131337e658d5238672f866627;hpb=da66c0656a6622a23cfdd8316e66681e487b87f1;p=PuTTY.git 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); } /*