From 836fbbe8557ede0c42666993f6195cc5bdca394e Mon Sep 17 00:00:00 2001 From: qgarnier Date: Tue, 31 Aug 2021 12:00:28 +0200 Subject: [PATCH] enh(backend/curl): remove debug ssl data (#3064) --- centreon/plugins/backend/http/curl.pm | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/centreon/plugins/backend/http/curl.pm b/centreon/plugins/backend/http/curl.pm index 01f0d66db..e51d97bcc 100644 --- a/centreon/plugins/backend/http/curl.pm +++ b/centreon/plugins/backend/http/curl.pm @@ -125,18 +125,14 @@ sub cb_debug { if ($type == $uservar->{constant_cb}->(name => 'CURLINFO_DATA_OUT')) { $msg = sprintf("=> Send data: %s", $data); } - if ($type == $uservar->{constant_cb}->(name => 'CURLINFO_SSL_DATA_OUT')) { - $msg = sprintf("=> Send SSL data: %s", $data); - } if ($type == $uservar->{constant_cb}->(name => 'CURLINFO_HEADER_IN')) { $msg = sprintf("=> Recv header: %s", $data); } if ($type == $uservar->{constant_cb}->(name => 'CURLINFO_DATA_IN')) { $msg = sprintf("=> Recv data: %s", $data); } - if ($type == $uservar->{constant_cb}->(name => 'CURLINFO_SSL_DATA_IN')) { - $msg = sprintf("=> Recv SSL data: %s", $data); - } + return 0 if ($type == $uservar->{constant_cb}->(name => 'CURLINFO_SSL_DATA_OUT')); + return 0 if ($type == $uservar->{constant_cb}->(name => 'CURLINFO_SSL_DATA_IN')); $uservar->{output}->output_add(long_msg => $msg, debug => 1); return 0;