From 4f143469c9d4f0427a801554a8d56530ba8eaf32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krystian=20Guli=C5=84ski?= Date: Thu, 26 Oct 2023 12:48:55 +0200 Subject: [PATCH] Update Servers.jl --- src/Servers.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Servers.jl b/src/Servers.jl index be03d1a86..14e5cc9bd 100644 --- a/src/Servers.jl +++ b/src/Servers.jl @@ -480,7 +480,7 @@ function handle_connection(f, c::Connection, listener, readtimeout, access_log, # The remote can close the stream whenever it wants to, but there's nothing # anyone can do about it on this side. No reason to log an error in that case. client_closed = e isa Base.IOError && e.code in (Base.UV_EPIPE, Base.UV_ECONNRESET, Base.UV_ECONNABORTED) - level = (e isa Base.IOError && !isopen(c)) || client_closed ? Logging.Debug : Logging.Error + level = e isa Base.IOError || client_closed ? Logging.Debug : Logging.Error @logmsgv 1 level begin msg = current_exceptions_to_string() "handle_connection handler error. $msg"