Skip to content

Commit

Permalink
Updated: Checking logger instance type
Browse files Browse the repository at this point in the history
  • Loading branch information
pedromdev committed Feb 26, 2017
1 parent cda37c2 commit 7ad26e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Service/AbstractLogFactory.php
Expand Up @@ -39,7 +39,7 @@ private function getLoggerOrThrowException(ServiceLocatorInterface $serviceLocat
{
$logger = $this->getServiceOrClassObject($serviceLocator, $logName);

if (is_null($logger)) {
if (!$logger instanceof LoggerInterface) {
throw new ServiceNotCreatedException("There is no '$logName' log");
}
return $logger;
Expand Down

0 comments on commit 7ad26e3

Please sign in to comment.