From: Remi Gacogne Date: Tue, 23 Dec 2025 15:30:49 +0000 (+0100) Subject: dnsdist: Convert protocol buffer code to structured logging X-Git-Tag: rec-5.4.0-beta1~33^2~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b847ccd3e37b51bdc1796cafa9f334663433d333;p=thirdparty%2Fpdns.git dnsdist: Convert protocol buffer code to structured logging Signed-off-by: Remi Gacogne --- diff --git a/pdns/dnsdistdist/dnsdist-protobuf.cc b/pdns/dnsdistdist/dnsdist-protobuf.cc index bb039ef018..a4423a5522 100644 --- a/pdns/dnsdistdist/dnsdist-protobuf.cc +++ b/pdns/dnsdistdist/dnsdist-protobuf.cc @@ -203,7 +203,8 @@ void DNSDistProtoBufMessage::serialize(std::string& data, bool withOpenTelemetry msg.addRRsFromPacket(reinterpret_cast(d_dr->getData().data()), d_dr->getData().size(), d_includeCNAME); } catch (const std::exception& exp) { - vinfolog("Error while parsing the RRs from a response packet to add them to the protobuf message: %s", exp.what()); + VERBOSESLOG(infolog("Error while parsing the RRs from a response packet to add them to the protobuf message: %s", exp.what()), + dnsdist::logging::getTopLogger()->error(Logr::Info, exp.what(), "Error while parsing the RRs from a response packet to add them to the protobuf message")); } } else {