]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: promote connection-closed messages from verbose to info
authordjm@openbsd.org <djm@openbsd.org>
Mon, 17 Jun 2024 08:28:31 +0000 (08:28 +0000)
committerDamien Miller <djm@mindrot.org>
Mon, 17 Jun 2024 08:31:39 +0000 (18:31 +1000)
log level; they could be the only record of the connection terminating if the
client doesn't send a SSH2_MSG_DISCONNECT message. ok dtucker@

OpenBSD-Commit-ID: 0c8bfaf5e9fdff945cee09ac21e641f6c5d65d3c

serverloop.c

index 4eabfced6f2ce12b09f7a0fb4f3aa0fe8ee4bc07..757cc6f0244e7bf1acc61e18633e190fef7f9ed5 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: serverloop.c,v 1.239 2024/05/17 00:30:24 djm Exp $ */
+/* $OpenBSD: serverloop.c,v 1.240 2024/06/17 08:28:31 djm Exp $ */
 /*
  * Author: Tatu Ylonen <ylo@cs.hut.fi>
  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -266,11 +266,11 @@ process_input(struct ssh *ssh, int connection_in)
                if (errno == EAGAIN || errno == EINTR || errno == EWOULDBLOCK)
                        return 0;
                if (errno == EPIPE) {
-                       verbose("Connection closed by %.100s port %d",
+                       logit("Connection closed by %.100s port %d",
                            ssh_remote_ipaddr(ssh), ssh_remote_port(ssh));
                        return -1;
                }
-               verbose("Read error from remote host %s port %d: %s",
+               logit("Read error from remote host %s port %d: %s",
                    ssh_remote_ipaddr(ssh), ssh_remote_port(ssh),
                    strerror(errno));
                cleanup_exit(255);