diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2022-01-11 01:26:48 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2022-01-11 01:26:48 +0000 |
commit | 215941195f94a783b730e331fa7f68f0dff62e6b (patch) | |
tree | 295fe6d4215b8824642c8046dbe22538b8300277 /usr.bin/ssh/clientloop.c | |
parent | 2c65adb045c78d23b39a60a04072f49a04d6fab4 (diff) |
suppress "Connection to xxx closed" messages at LogLevel >= error
bz3378; ok dtucker@
Diffstat (limited to 'usr.bin/ssh/clientloop.c')
-rw-r--r-- | usr.bin/ssh/clientloop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/clientloop.c b/usr.bin/ssh/clientloop.c index 88c0ee9020a..4a828a4a2e9 100644 --- a/usr.bin/ssh/clientloop.c +++ b/usr.bin/ssh/clientloop.c @@ -1,4 +1,4 @@ -/* $OpenBSD: clientloop.c,v 1.375 2022/01/06 21:57:28 djm Exp $ */ +/* $OpenBSD: clientloop.c,v 1.376 2022/01/11 01:26:47 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -1422,7 +1422,7 @@ client_loop(struct ssh *ssh, int have_pty, int escape_char_arg, * 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_INFO) { if ((r = sshbuf_putf(stderr_buffer, "Connection to %.64s closed.\r\n", host)) != 0) fatal_fr(r, "sshbuf_putf"); |