[icinga-checkins] icinga.org: icinga2/feature/configconvert-2743: configconversion: remove debug output

git at icinga.org git at icinga.org
Tue Apr 30 18:48:46 CEST 2013


Module: icinga2
Branch: feature/configconvert-2743
Commit: f75d13dfa1df2d8f8536292f16de1ecc7eba4fd6
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=f75d13dfa1df2d8f8536292f16de1ecc7eba4fd6

Author: Michael Friedrich <michael.friedrich at netways.de>
Date:   Tue Apr 30 18:44:41 2013 +0200

configconversion: remove debug output

---

 contrib/configconvert/Icinga2/Convert.pm |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/contrib/configconvert/Icinga2/Convert.pm b/contrib/configconvert/Icinga2/Convert.pm
index 7c2795a..db0be4e 100644
--- a/contrib/configconvert/Icinga2/Convert.pm
+++ b/contrib/configconvert/Icinga2/Convert.pm
@@ -1275,13 +1275,13 @@ sub convert_2x {
     # now loop over all hostgroups with service relations
     foreach my $service_hg_obj_2x_key (keys %{$obj_2x_services_hg}) {
 
-        say Dumper($obj_2x_services_hg);
+        #say Dumper($obj_2x_services_hg);
 
         # get the stored unique key to our services
         my $hg_name = $service_hg_obj_2x_key;
         my @service_keys = @{$obj_2x_services_hg->{$hg_name}};
 
-        print "DEBUG: Looking for $hg_name ...\n";
+        #print "DEBUG: Looking for $hg_name ...\n";
 
         my $obj_2x_hostgroup = obj_get_hostgroup_obj_by_hostgroup_name($cfg_obj_2x, $hg_name);
 
@@ -1295,7 +1295,7 @@ sub convert_2x {
 
         if(@service_hostgroup_hostnames == 0) {
             # no members, so service cannot be linked. log a warning XXX
-            print " DEBUG: no members found, skipping $hg_name\n";
+            #print " DEBUG: no members found, skipping $hg_name\n";
             next;
         }
         
@@ -1318,7 +1318,7 @@ sub convert_2x {
         # loop through all services and attach them to the host template
         foreach my $service_obj_2x_key_val (@service_keys) {
 
-            print "DEBUG: Working on $service_obj_2x_key_val ...\n";
+            #print "DEBUG: Working on $service_obj_2x_key_val ...\n";
             # get the service object by key
             my $obj_2x_service = @$cfg_obj_2x{'service'}->{$service_obj_2x_key_val};
 
@@ -1354,7 +1354,7 @@ sub convert_2x {
         #say Dumper($obj_2x_host_template);
 
         $obj_2x_hosts_cnt++;
-        print "adding new host at key " . $obj_2x_hosts_cnt . "\n";
+        #print "adding new host at key " . $obj_2x_hosts_cnt . "\n";
         $cfg_obj_2x->{'host'}->{$obj_2x_hosts_cnt} = $obj_2x_host_template;
 
     }





More information about the icinga-checkins mailing list