]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
GSQLBackend::feedRecord: log name and type in error
authorPieter Lexis <pieter.lexis@powerdns.com>
Fri, 15 Mar 2019 11:16:50 +0000 (12:16 +0100)
committerPieter Lexis <pieter.lexis@powerdns.com>
Fri, 15 Mar 2019 13:34:47 +0000 (14:34 +0100)
pdns/backends/gsql/gsqlbackend.cc

index 76520fb4674681bb69ab986cd10834ac30c64257..1cf4a37e67c836c4bbc668cfac3812a2943a8fc4 100644 (file)
@@ -1384,7 +1384,7 @@ bool GSQLBackend::feedRecord(const DNSResourceRecord &r, const DNSName &ordernam
       reset();
   }
   catch (SSqlException &e) {
-    throw PDNSException("GSQLBackend unable to feed record: "+e.txtReason());
+    throw PDNSException("GSQLBackend unable to feed record " + r.qname.toLogString() + "|" + r.qtype.getName() + ": "+e.txtReason());
   }
   return true; // XXX FIXME this API should not return 'true' I think -ahu 
 }