]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
GSQLBackend::lookup: log qname and qtype in error
authorPieter Lexis <pieter.lexis@powerdns.com>
Fri, 15 Mar 2019 10:58:17 +0000 (11:58 +0100)
committerPieter Lexis <pieter.lexis@powerdns.com>
Fri, 15 Mar 2019 13:34:46 +0000 (14:34 +0100)
pdns/backends/gsql/gsqlbackend.cc

index fc0cf30ccb14dc5eb48432a3cccab75ca0fa730c..04888a71cb75f41640968c133afccfdc3eef3414 100644 (file)
@@ -1045,7 +1045,7 @@ void GSQLBackend::lookup(const QType &qtype,const DNSName &qname, DNSPacket *pkt
       execute();
   }
   catch(SSqlException &e) {
-    throw PDNSException("GSQLBackend lookup query:"+e.txtReason());
+    throw PDNSException("GSQLBackend unable to lookup '" + qname.toLogString() + "|" + qtype.getName() + "':"+e.txtReason());
   }
 
   d_qname=qname;