]> granicus.if.org Git - pdns/commitdiff
Only print zonecount if invoked verbose
authorKevin Otte <nivex@nivex.net>
Thu, 23 Mar 2017 15:19:51 +0000 (11:19 -0400)
committerKevin Otte <nivex@nivex.net>
Thu, 23 Mar 2017 15:19:51 +0000 (11:19 -0400)
pdns/pdnsutil.cc

index a623d195ead6752e438298470bf1a3ff819ab4a1..d21204e411adb99dd0b5a9715655291f2392650d 100644 (file)
@@ -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;
 }