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

let caller code handle errors logging

parent 4f9e7869
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,6 @@ use warnings;
use IdPAccountManager::Data::Authenticationtoken;
use IdPAccountManager::Data::Authenticationtoken::Manager;
use IdPAccountManager::Tools;
use Conf;
use Digest::MD5;
......@@ -83,8 +82,6 @@ sub save {
}
unless ($self->{'persistent'}->save()) {
IdPAccountManager::Tools::do_log('error',
"Failed to save Authenticationtoken in DB");
return undef;
}
}
......@@ -94,8 +91,6 @@ sub delete {
my $self = shift;
unless ($self->{'persistent'}->delete()) {
IdPAccountManager::Tools::do_log('error',
"Failed to delete a Authenticationtoken in DB");
return undef;
}
}
......
......@@ -70,8 +70,6 @@ sub save {
}
unless ($self->{'persistent'}->save()) {
IdPAccountManager::Tools::do_log('error',
"Failed to save Test Account in DB");
return undef;
}
}
......@@ -81,8 +79,6 @@ sub delete {
my $self = shift;
unless ($self->{'persistent'}->delete()) {
IdPAccountManager::Tools::do_log('error',
"Failed to delete a test account in DB");
return undef;
}
}
......@@ -124,8 +120,6 @@ sub create_test_accounts_for_sp {
my @test_accounts;
unless ($args{'sp_entityid'}) {
IdPAccountManager::Tools::do_log('error',
"Failed to create test account");
return undef;
}
......@@ -135,14 +129,10 @@ sub create_test_accounts_for_sp {
sp_entityid => $args{'sp_entityid'}
);
unless (defined $test_account) {
IdPAccountManager::Tools::do_log('error',
"Failed to create test account");
return undef;
}
unless ($test_account->save()) {
IdPAccountManager::Tools::do_log('error',
"Failed to create test account");
return undef;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment