From: Pieter Lexis Date: Fri, 15 Mar 2019 11:08:32 +0000 (+0100) Subject: GSQLBackend::replaceRRSet: log domain name and type in error X-Git-Tag: dnsdist-1.4.0-alpha1~53^2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9bcfb0458a4f477d02a4983d753be1cf1cd920a1;p=thirdparty%2Fpdns.git GSQLBackend::replaceRRSet: log domain name and type in error --- diff --git a/pdns/backends/gsql/gsqlbackend.cc b/pdns/backends/gsql/gsqlbackend.cc index f237919b14..76520fb467 100644 --- a/pdns/backends/gsql/gsqlbackend.cc +++ b/pdns/backends/gsql/gsqlbackend.cc @@ -1319,7 +1319,7 @@ bool GSQLBackend::replaceRRSet(uint32_t domain_id, const DNSName& qname, const Q } } catch (SSqlException &e) { - throw PDNSException("GSQLBackend unable to delete RRSet: "+e.txtReason()); + throw PDNSException("GSQLBackend unable to delete RRSet " + qname.toLogString() + "|" + qt.getName() + ": "+e.txtReason()); } if (rrset.empty()) { @@ -1334,7 +1334,7 @@ bool GSQLBackend::replaceRRSet(uint32_t domain_id, const DNSName& qname, const Q reset(); } catch (SSqlException &e) { - throw PDNSException("GSQLBackend unable to delete comment: "+e.txtReason()); + throw PDNSException("GSQLBackend unable to delete comment for RRSet " + qname.toLogString() + "|" + qt.getName() + ": "+e.txtReason()); } } for(const auto& rr: rrset) {