]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Do not log from the TCP connection `dtor`
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 20 Jan 2026 11:06:51 +0000 (12:06 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 20 Jan 2026 11:14:49 +0000 (12:14 +0100)
It is not really useful and could throw.

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
pdns/dnsdistdist/dnsdist-tcp-downstream.cc

index 8548b072b3a97f7476b8cffa682203da53f188f9..45861c9c17510fda6cf67218691be336cb8da8a3 100644 (file)
@@ -25,9 +25,8 @@ ConnectionToBackend::~ConnectionToBackend()
           g_sessionCache.putSessions(d_ds->getID(), now.tv_sec, std::move(sessions));
         }
       }
-      catch (const std::exception& e) {
-        VERBOSESLOG(infolog("Unable to get a TLS session: %s", e.what()),
-                    ConnectionToBackend::getLogger()->error(Logr::Info, e.what(), "Unable to get a TLS session"));
+      catch (const std::exception&) {
+        /* not much to do here */
       }
     }
     auto diff = now - d_connectionStartTime;