]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
GSQLBackend::setMaster: log IP address in error
authorPieter Lexis <pieter.lexis@powerdns.com>
Fri, 15 Mar 2019 11:37:35 +0000 (12:37 +0100)
committerPieter Lexis <pieter.lexis@powerdns.com>
Fri, 15 Mar 2019 13:34:48 +0000 (14:34 +0100)
pdns/backends/gsql/gsqlbackend.cc

index 162add7b7a6136057b5f3af28de6bb694c5dd8a9..620861b14548e50009066e9c99f67b42e27b287e 100644 (file)
@@ -224,7 +224,7 @@ bool GSQLBackend::setMaster(const DNSName &domain, const string &ip)
       reset();
   }
   catch (SSqlException &e) {
-    throw PDNSException("GSQLBackend unable to set master of domain '"+domain.toLogString()+"': "+e.txtReason());
+    throw PDNSException("GSQLBackend unable to set master of domain '"+domain.toLogString()+"' to IP address " + ip + ": "+e.txtReason());
   }
   return true;
 }