]> granicus.if.org Git - pdns/commitdiff
Replace DNSName.toString() in the geoip-backend
authorPieter Lexis <pieter.lexis@powerdns.com>
Tue, 28 Jun 2016 09:03:23 +0000 (11:03 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Fri, 1 Jul 2016 12:28:26 +0000 (14:28 +0200)
modules/geoipbackend/geoipbackend.cc

index e10ee864b61653a79cd4377c34b54558d02dce06..be5affe3b6050ad73154656e8a5026b54a7a4d0c 100644 (file)
@@ -141,14 +141,14 @@ void GeoIPBackend::initialize() {
                rr.weight = iter->second.as<int>();
                if (rr.weight < 0) {
                  L<<Logger::Error<<"Weight cannot be negative for " << rr.qname << endl;
-                 throw PDNSException(string("Weight cannot be negative for ") + rr.qname.toString());
+                 throw PDNSException(string("Weight cannot be negative for ") + rr.qname.toLogString());
                }
                rr.has_weight = true;
              } else if (attr == "ttl") {
                rr.ttl = iter->second.as<int>();
              } else {
                L<<Logger::Error<<"Unsupported record attribute " << attr << " for " << rr.qname << endl;
-               throw PDNSException(string("Unsupported record attribute ") + attr + string(" for ") + rr.qname.toString());
+               throw PDNSException(string("Unsupported record attribute ") + attr + string(" for ") + rr.qname.toLogString());
              }
            }
        } else {