From f0927cbb4396c7519a29a4f0681fb00173e6de2c Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Wed, 28 Apr 2021 06:33:28 +0300 Subject: [PATCH] Minor changes in code #14254 --- src/IO/TimeoutSetter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/IO/TimeoutSetter.cpp b/src/IO/TimeoutSetter.cpp index f00f3f26307..5a87883824f 100644 --- a/src/IO/TimeoutSetter.cpp +++ b/src/IO/TimeoutSetter.cpp @@ -34,11 +34,11 @@ TimeoutSetter::~TimeoutSetter() socket.setSendTimeout(old_send_timeout); socket.setReceiveTimeout(old_receive_timeout); } - catch (const std::exception & e) + catch (...) { /// Sometimes caught on Mac OS X. This message can be safely ignored. /// If you are developer using Mac, please debug this error message by yourself. - LOG_ERROR(&Poco::Logger::get("Client"), "TimeoutSetter: Can't reset timeouts: {}", e.what()); + tryLogCurrentException("Client", "TimeoutSetter: Can't reset timeouts"); } }