From e4e2b6ca4b85e1898d4123f987f4938c8d570973 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Thu, 18 Apr 2019 15:54:12 +0200 Subject: [PATCH] remove data::dumper --- apps/github/mode/stats.pm | 2 -- apps/rrdcached/mode/stats.pm | 1 - database/cassandra/jmx/mode/clientrequestsusage.pm | 3 --- hardware/ups/powerware/snmp/mode/outputlines.pm | 3 --- network/ruggedcom/mode/temperature.pm | 1 - network/stonesoft/snmp/mode/memory.pm | 1 - 6 files changed, 11 deletions(-) diff --git a/apps/github/mode/stats.pm b/apps/github/mode/stats.pm index 5e158e6c9..203e249b0 100644 --- a/apps/github/mode/stats.pm +++ b/apps/github/mode/stats.pm @@ -26,7 +26,6 @@ use strict; use warnings; use centreon::plugins::http; use JSON; -use Data::Dumper; sub new { my ($class, %options) = @_; @@ -77,7 +76,6 @@ sub run { if ($@) { $self->{output}->add_option_msg(short_msg => "Cannot decode json response: $@"); - $self->{output}->output_add(long_msg => Data::Dumper::Dumper(), debug => 1); $self->{output}->option_exit(); } diff --git a/apps/rrdcached/mode/stats.pm b/apps/rrdcached/mode/stats.pm index 7ad9be931..dbc5d9fb6 100644 --- a/apps/rrdcached/mode/stats.pm +++ b/apps/rrdcached/mode/stats.pm @@ -25,7 +25,6 @@ use base qw(centreon::plugins::mode); use strict; use warnings; use IO::Socket; -use Data::Dumper; sub new { my ($class, %options) = @_; diff --git a/database/cassandra/jmx/mode/clientrequestsusage.pm b/database/cassandra/jmx/mode/clientrequestsusage.pm index 6c55f8cbb..6ba2b37af 100644 --- a/database/cassandra/jmx/mode/clientrequestsusage.pm +++ b/database/cassandra/jmx/mode/clientrequestsusage.pm @@ -122,9 +122,6 @@ sub manage_selection { } } - use Data::Dumper; - print Data::Dumper::Dumper($self->{cr}); - if (scalar(keys %{$self->{cr}}) <= 0) { $self->{output}->add_option_msg(short_msg => "No client request found."); $self->{output}->option_exit(); diff --git a/hardware/ups/powerware/snmp/mode/outputlines.pm b/hardware/ups/powerware/snmp/mode/outputlines.pm index 004255132..2b85cc438 100644 --- a/hardware/ups/powerware/snmp/mode/outputlines.pm +++ b/hardware/ups/powerware/snmp/mode/outputlines.pm @@ -144,9 +144,6 @@ sub manage_selection { $result->{xupsOutputFrequency} = defined($result->{xupsOutputFrequency}) ? ($result->{xupsOutputFrequency} * 0.1) : 0; $result->{xupsOutputLoad} = defined($result->{xupsOutputLoad}) ? $result->{xupsOutputLoad} : -1; $self->{global} = { %$result }; - - use Data::Dumper; - print Data::Dumper::Dumper($self->{oline}); } 1; diff --git a/network/ruggedcom/mode/temperature.pm b/network/ruggedcom/mode/temperature.pm index bfddf5f42..76b33e03d 100644 --- a/network/ruggedcom/mode/temperature.pm +++ b/network/ruggedcom/mode/temperature.pm @@ -24,7 +24,6 @@ use base qw(centreon::plugins::mode); use strict; use warnings; -use Data::Dumper; sub new { my ($class, %options) = @_; diff --git a/network/stonesoft/snmp/mode/memory.pm b/network/stonesoft/snmp/mode/memory.pm index 19f8fc5b4..ddf6689fa 100644 --- a/network/stonesoft/snmp/mode/memory.pm +++ b/network/stonesoft/snmp/mode/memory.pm @@ -24,7 +24,6 @@ use base qw(centreon::plugins::mode); use strict; use warnings; -use Data::Dumper; sub new { my ($class, %options) = @_;