From 58c1210f4b0d85eec0f7df539643ac3c705862fc Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Wed, 13 Jun 2007 00:18:25 +0000 Subject: * Suppress "Connection to closed" and "Connection to master closed" messages at loglevel SILENT (thanks, Jaap Eldering; closes: #409788). * Suppress "Pseudo-terminal will not be allocated because stdin is not a terminal" message at loglevels QUIET and SILENT (closes: #366814). --- clientloop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clientloop.c') diff --git a/clientloop.c b/clientloop.c index ae93dcdf3..766a4b3bf 100644 --- a/clientloop.c +++ b/clientloop.c @@ -1563,7 +1563,7 @@ client_loop(int have_pty, int escape_char_arg, int ssh2_chan_id) * In interactive mode (with pseudo tty) display a message indicating * that the connection has been closed. */ - if (have_pty && options.log_level != SYSLOG_LEVEL_QUIET) { + if (have_pty && options.log_level > SYSLOG_LEVEL_QUIET) { snprintf(buf, sizeof buf, "Connection to %.64s closed.\r\n", host); buffer_append(&stderr_buffer, buf, strlen(buf)); } -- cgit v1.2.3