Fix call to logger (#1898)

This commit is contained in:
Clément OUDOT 2019-08-27 16:46:50 +02:00
parent a7950a2613
commit 6a462bfed3

View File

@ -201,15 +201,14 @@ sub _isAlive {
my $total_c = $stats->{'total'}->{'connection_structures'};
my $total_i = $stats->{'total'}->{'total_items'};
$class->(
"Memcached connection is alive ($total_c connections / $total_i items)",
'debug'
$class->logger->debug->(
"Memcached connection is alive ($total_c connections / $total_i items)"
);
return 1;
}
$class->( "Memcached connection is not alive", 'error' );
$class->logger->error("Memcached connection is not alive");
return 0;
}