]> granicus.if.org Git - pdns/commitdiff
use implicit DNSName.toLogString() in zone2ldap
authorPieter Lexis <pieter.lexis@powerdns.com>
Tue, 28 Jun 2016 10:51:42 +0000 (12:51 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Fri, 1 Jul 2016 12:34:57 +0000 (14:34 +0200)
pdns/zone2ldap.cc

index 061a406979182d644e18fdce8f4370b941f20c45..e8750aa15d79acf45cff15554d8542b8f833904a 100644 (file)
@@ -52,7 +52,7 @@ static void callback_simple( unsigned int domain_id, const DNSName &domain, cons
 
         if( ! domain.isPartOf(g_zonename) )
         {
-                cerr << "Domain '" << domain.toString() << "'' not part of '" << g_zonename.toString() << "'"<< endl;
+                cerr << "Domain '" << domain << "'' not part of '" << g_zonename << "'"<< endl;
                 return;
         }
 
@@ -202,14 +202,14 @@ int main( int argc, char* argv[] )
                         for( vector<BindDomainInfo>::const_iterator i = domains.begin(); i != domains.end(); i++ )
                         {
                                         if(i->type!="master" && i->type!="slave") {
-                                                cerr<<" Warning! Skipping '"<<i->type<<"' zone '"<<i->name.toString()<<"'"<<endl;
+                                                cerr<<" Warning! Skipping '"<<i->type<<"' zone '"<<i->name<<"'"<<endl;
                                                 continue;
                                         }
                                 try
                                 {
                                  if( i->name != DNSName(".") && i->name != DNSName("localhost") && i->name != DNSName("0.0.127.in-addr.arpa") )
                                         {
-                                                cerr << "Parsing file: " << i->filename << ", domain: " << i->name.toString() << endl;
+                                                cerr << "Parsing file: " << i->filename << ", domain: " << i->name << endl;
                                                 g_zonename = i->name;
                                                 ZoneParserTNG zpt(i->filename, i->name, BP.getDirectory());
                                                 DNSResourceRecord rr;