]> granicus.if.org Git - pdns/commitdiff
GSQLBackend::superMasterBackend: log domain name, ip and nameserver name in error
authorPieter Lexis <pieter.lexis@powerdns.com>
Fri, 15 Mar 2019 11:06:11 +0000 (12:06 +0100)
committerPieter Lexis <pieter.lexis@powerdns.com>
Fri, 15 Mar 2019 13:34:47 +0000 (14:34 +0100)
pdns/backends/gsql/gsqlbackend.cc

index 2d95fbca4f9ee933a9832e59dfcf315d99b24a53..f237919b14a4e8f5326ec25243364195274d2bec 100644 (file)
@@ -1140,7 +1140,7 @@ bool GSQLBackend::superMasterBackend(const string &ip, const DNSName &domain, co
         reset();
     }
     catch (SSqlException &e) {
-      throw PDNSException("GSQLBackend unable to search for a domain: "+e.txtReason());
+      throw PDNSException("GSQLBackend unable to search for a supermaster with IP " + ip + " and nameserver name '" + i->content + "' for domain '" + domain.toLogString() + "': "+e.txtReason());
     }
     if(!d_result.empty()) {
       ASSERT_ROW_COLUMNS("supermaster-query", d_result[0], 1);