diff --git a/lib/AccountManager/App.pm b/lib/AccountManager/App.pm index fa66bf8e584d64726ecfab061065dcd404d1c416..0f52e0dc96bc7830d20cf7d46350c41ba7ceb0f4 100644 --- a/lib/AccountManager/App.pm +++ b/lib/AccountManager/App.pm @@ -47,6 +47,7 @@ sub new { my $self = { configuration => $args{configuration}, }; + bless $self, $pkg; if ($self->{configuration}->{logger}) { Log::Any::Adapter->set( @@ -111,8 +112,6 @@ sub new { $self->{db} = AccountManager::DB->new(); - bless $self, $pkg; - return $self; }