Skip to content

Commit

Permalink
[HttpKernel] Remove non-needed alias
Browse files Browse the repository at this point in the history
  • Loading branch information
angelov committed Dec 29, 2022
1 parent 33c3a7c commit d9bfaea
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
namespace Symfony\Component\HttpKernel\EventListener;

use Psr\Log\LoggerInterface;
use Psr\Log\LogLevel as PsrLogLevel;
use Psr\Log\LogLevel;
use Symfony\Component\ErrorHandler\Exception\FlattenException;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\HttpFoundation\Request;
Expand Down Expand Up @@ -195,10 +195,10 @@ private function resolveLogLevel(\Throwable $throwable): string
}

if (!$throwable instanceof HttpExceptionInterface || $throwable->getStatusCode() >= 500) {
return PsrLogLevel::CRITICAL;
return LogLevel::CRITICAL;
}

return PsrLogLevel::ERROR;
return LogLevel::ERROR;
}

/**
Expand Down

0 comments on commit d9bfaea

Please sign in to comment.