From: Pieter Lexis Date: Fri, 15 Mar 2019 11:39:44 +0000 (+0100) Subject: GSQLBackend::getDomainInfo: log domain name in error X-Git-Tag: dnsdist-1.4.0-alpha1~53^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0cbc5aeb648ba71fb3bfbdaf7d7e7b30bc24aab7;p=thirdparty%2Fpdns.git GSQLBackend::getDomainInfo: log domain name in error --- diff --git a/pdns/backends/gsql/gsqlbackend.cc b/pdns/backends/gsql/gsqlbackend.cc index f19bba8378..5086c62697 100644 --- a/pdns/backends/gsql/gsqlbackend.cc +++ b/pdns/backends/gsql/gsqlbackend.cc @@ -277,7 +277,7 @@ bool GSQLBackend::getDomainInfo(const DNSName &domain, DomainInfo &di, bool getS reset(); } catch(SSqlException &e) { - throw PDNSException("GSQLBackend unable to retrieve information about a domain: "+e.txtReason()); + throw PDNSException("GSQLBackend unable to retrieve information about domain '" + domain.toLogString() + "': "+e.txtReason()); } int numanswers=d_result.size();