From: Pieter Lexis Date: Fri, 15 Mar 2019 11:38:05 +0000 (+0100) Subject: GSQLBackend::setKind: log kind in error X-Git-Tag: dnsdist-1.4.0-alpha1~53^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=55a45ff43c32de8567b723bfb619ac114888d5f5;p=pdns GSQLBackend::setKind: log kind in error --- diff --git a/pdns/backends/gsql/gsqlbackend.cc b/pdns/backends/gsql/gsqlbackend.cc index 620861b14..58493cd1b 100644 --- a/pdns/backends/gsql/gsqlbackend.cc +++ b/pdns/backends/gsql/gsqlbackend.cc @@ -241,7 +241,7 @@ bool GSQLBackend::setKind(const DNSName &domain, const DomainInfo::DomainKind ki reset(); } catch (SSqlException &e) { - throw PDNSException("GSQLBackend unable to set kind of domain '"+domain.toLogString()+"': "+e.txtReason()); + throw PDNSException("GSQLBackend unable to set kind of domain '"+domain.toLogString()+"' to " + toUpper(DomainInfo::getKindString(kind)) + ": "+e.txtReason()); } return true; }