Skip to content

Commit

Permalink
Logger Handler: fix Alert and Emergency levels (#109)
Browse files Browse the repository at this point in the history
Signed-off-by: Plakhotnikov Vladimir <[email protected]>
  • Loading branch information
Kaspiman authored Oct 4, 2024
1 parent 92ee4eb commit 948ef46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Logger/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ protected function write(array|LogRecord $record): void

/** @psalm-suppress DeprecatedConstant */
match ($level) {
Logger::ERROR, Logger::CRITICAL => $this->logger->error($message),
Logger::WARNING, Logger::ALERT, Logger::EMERGENCY => $this->logger->warning($message),
Logger::ERROR, Logger::CRITICAL, Logger::ALERT, Logger::EMERGENCY => $this->logger->error($message),
Logger::WARNING => $this->logger->warning($message),
Logger::INFO, Logger::NOTICE => $this->logger->info($message),
Logger::DEBUG => $this->logger->debug($message),
};
Expand Down

0 comments on commit 948ef46

Please sign in to comment.