From 10a9399b24ae82e2e550cb1b8bda2961c1e74f50 Mon Sep 17 00:00:00 2001
From: Guillaume Rousse <guillaume.rousse@renater.fr>
Date: Fri, 3 Nov 2017 12:03:15 +0100
Subject: [PATCH] kill debug and tracing code

---
 lib/IdPAccountManager/SAMLMetadata.pm | 20 --------------------
 1 file changed, 20 deletions(-)

diff --git a/lib/IdPAccountManager/SAMLMetadata.pm b/lib/IdPAccountManager/SAMLMetadata.pm
index f310bc5..0cf1884 100644
--- a/lib/IdPAccountManager/SAMLMetadata.pm
+++ b/lib/IdPAccountManager/SAMLMetadata.pm
@@ -106,7 +106,6 @@ sub print {
 ## returns a Lib::XML représenting an XML file
 sub _get_xml_object {
     my ($self, $metadata_file) = @_;
-    $self->{logger}->log(level => LOG_DEBUG, message => "");
 
     unless (-f $metadata_file) {
         $self->{logger}->log(
@@ -235,16 +234,6 @@ sub _parse_saml_metadata {
                         )
                     };
 
-                      #$self->{logger}->log(
-                      #    level   => LOG_TRACE,
-                      #    message => sprintf(
-                      #        "Endpoint: type:%s ; binding=%s ; location=%s ; index=%s ; isdefault=%s", 'AssertionConsumerService',
-                      #        $sso->getAttribute('Binding'),
-                      #        $sso->getAttribute('Location'),
-                      #        $sso->getAttribute('index'),
-                      #        $sso->getAttribute('isDefault')
-                      #    )
-                      #);
                 }
 
                 foreach my $requestedattribute (
@@ -341,18 +330,11 @@ sub _parse_saml_metadata {
             foreach
               my $contact ($child->getElementsByLocalName('ContactPerson'))
             {
-                $self->{logger}
-                  ->log(level => LOG_TRACE, message => "ContactPerson");
 
                 my %contact_details;
                 $contact_details{type} =
                   $contact->getAttribute('contactType');
                 foreach my $contact_child ($EntityDescriptor->childNodes()) {
-                    $self->{logger}->log(
-                        level   => LOG_TRACE,
-                        message => "Contact : %s",
-                        $contact_child->localName
-                    );
                     $contact_details{ $contact_child->localName } =
                       IdPAccountManager::Tools::encode_utf8(
                         $contact_child->textContent());
@@ -385,8 +367,6 @@ sub _parse_saml_metadata {
           if ($extracted_data->{domain});
         $extracted_data->{domain} = $domains;
 
-  #$self->{logger}->log(level => LOG_DEBUG, message => "Scopes : %s", $domains);
-
         push @extracted_array, $extracted_data;
     }
 
-- 
GitLab