From: Chris Hofstaedtler Date: Fri, 21 Jul 2023 16:17:23 +0000 (+0200) Subject: auth: add remote to logs when tcp thread dies X-Git-Tag: rec-5.0.0-alpha1~92^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F13063%2Fhead;p=thirdparty%2Fpdns.git auth: add remote to logs when tcp thread dies --- diff --git a/pdns/tcpreceiver.cc b/pdns/tcpreceiver.cc index 49a1b66f5d..77c7e784e8 100644 --- a/pdns/tcpreceiver.cc +++ b/pdns/tcpreceiver.cc @@ -422,20 +422,20 @@ void TCPNameserver::doConnection(int fd) } catch(PDNSException &ae) { s_P.lock()->reset(); // on next call, backend will be recycled - g_log<reset(); // on next call, backend will be recycled - g_log << Logger::Error << "TCP Connection Thread died because of STL error, cycling backend: " << e.what() << endl; + g_log << Logger::Error << "TCP Connection Thread for client " << remote << " died because of STL error, cycling backend: " << e.what() << endl; } catch( ... ) { s_P.lock()->reset(); // on next call, backend will be recycled - g_log << Logger::Error << "TCP Connection Thread caught unknown exception, cycling backend." << endl; + g_log << Logger::Error << "TCP Connection Thread for client " << remote << " caught unknown exception, cycling backend." << endl; } d_connectionroom_sem->post(); @@ -443,7 +443,7 @@ void TCPNameserver::doConnection(int fd) closesocket(fd); } catch(const PDNSException& e) { - g_log<