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

index 96386bfcf33542fb2684c47c959a315691b55aea..4a10c560d33291c23c41e64a58eb4fdcb8f89683 100644 (file)
@@ -1460,7 +1460,7 @@ bool GSQLBackend::startTransaction(const DNSName &domain, int domain_id)
   }
   catch (SSqlException &e) {
     d_inTransaction = false;
-    throw PDNSException("Database failed to start transaction: "+e.txtReason());
+    throw PDNSException("Database failed to start transaction for domain '" + domain.toLogString() + "': "+e.txtReason());
   }
 
   return true;