Skip to content

Commit

Permalink
Only print zonecount if invoked verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
nivex committed Mar 23, 2017
1 parent a77e6c0 commit a1a986a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions pdns/pdnsutil.cc
Expand Up @@ -1388,10 +1388,13 @@ int listAllZones(const string &type="") {
}
}

if (kindFilter != -1)
cout<<type<<" zonecount: "<<count<<endl;
else
cout<<"All zonecount: "<<count<<endl;
if (g_verbose) {
if (kindFilter != -1)
cout<<type<<" zonecount: "<<count<<endl;
else
cout<<"All zonecount: "<<count<<endl;
}

return 0;
}

Expand Down

0 comments on commit a1a986a

Please sign in to comment.