Skip to content
Snippets Groups Projects
Commit 10a9399b authored by Guillaume ROUSSE's avatar Guillaume ROUSSE
Browse files

kill debug and tracing code

parent 1e14a7c3
Branches
Tags
No related merge requests found
...@@ -106,7 +106,6 @@ sub print { ...@@ -106,7 +106,6 @@ sub print {
## returns a Lib::XML représenting an XML file ## returns a Lib::XML représenting an XML file
sub _get_xml_object { sub _get_xml_object {
my ($self, $metadata_file) = @_; my ($self, $metadata_file) = @_;
$self->{logger}->log(level => LOG_DEBUG, message => "");
unless (-f $metadata_file) { unless (-f $metadata_file) {
$self->{logger}->log( $self->{logger}->log(
...@@ -235,16 +234,6 @@ sub _parse_saml_metadata { ...@@ -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 ( foreach my $requestedattribute (
...@@ -341,18 +330,11 @@ sub _parse_saml_metadata { ...@@ -341,18 +330,11 @@ sub _parse_saml_metadata {
foreach foreach
my $contact ($child->getElementsByLocalName('ContactPerson')) my $contact ($child->getElementsByLocalName('ContactPerson'))
{ {
$self->{logger}
->log(level => LOG_TRACE, message => "ContactPerson");
my %contact_details; my %contact_details;
$contact_details{type} = $contact_details{type} =
$contact->getAttribute('contactType'); $contact->getAttribute('contactType');
foreach my $contact_child ($EntityDescriptor->childNodes()) { foreach my $contact_child ($EntityDescriptor->childNodes()) {
$self->{logger}->log(
level => LOG_TRACE,
message => "Contact : %s",
$contact_child->localName
);
$contact_details{ $contact_child->localName } = $contact_details{ $contact_child->localName } =
IdPAccountManager::Tools::encode_utf8( IdPAccountManager::Tools::encode_utf8(
$contact_child->textContent()); $contact_child->textContent());
...@@ -385,8 +367,6 @@ sub _parse_saml_metadata { ...@@ -385,8 +367,6 @@ sub _parse_saml_metadata {
if ($extracted_data->{domain}); if ($extracted_data->{domain});
$extracted_data->{domain} = $domains; $extracted_data->{domain} = $domains;
#$self->{logger}->log(level => LOG_DEBUG, message => "Scopes : %s", $domains);
push @extracted_array, $extracted_data; push @extracted_array, $extracted_data;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment