From a274da88e4025d7e0626390a3674defdf2d08383 Mon Sep 17 00:00:00 2001 From: Chris Hofstaedtler Date: Fri, 21 Jul 2023 18:17:23 +0200 Subject: [PATCH] auth: add remote to logs when tcp thread dies --- pdns/tcpreceiver.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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<