Minor changes in code #14254

This commit is contained in:
Alexey Milovidov 2021-04-28 06:33:28 +03:00
parent c1d5713110
commit f0927cbb43

View File

@ -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");
}
}