diff options
author | Colin Watson <cjwatson@debian.org> | 2007-06-13 00:18:25 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2007-06-13 00:18:25 +0000 |
commit | 58c1210f4b0d85eec0f7df539643ac3c705862fc (patch) | |
tree | 7aee5204e60fde616ab7b5a9f06e6af168a701ec /clientloop.c | |
parent | a31dd2449bd885d5763c2857eb4cac2794cf7ba9 (diff) |
* Suppress "Connection to <host> 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).
Diffstat (limited to 'clientloop.c')
-rw-r--r-- | clientloop.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
1563 | * In interactive mode (with pseudo tty) display a message indicating | 1563 | * In interactive mode (with pseudo tty) display a message indicating |
1564 | * that the connection has been closed. | 1564 | * that the connection has been closed. |
1565 | */ | 1565 | */ |
1566 | if (have_pty && options.log_level != SYSLOG_LEVEL_QUIET) { | 1566 | if (have_pty && options.log_level > SYSLOG_LEVEL_QUIET) { |
1567 | snprintf(buf, sizeof buf, "Connection to %.64s closed.\r\n", host); | 1567 | snprintf(buf, sizeof buf, "Connection to %.64s closed.\r\n", host); |
1568 | buffer_append(&stderr_buffer, buf, strlen(buf)); | 1568 | buffer_append(&stderr_buffer, buf, strlen(buf)); |
1569 | } | 1569 | } |