Skip to content

Commit

Permalink
[BUGFIX] LogLevel is evaluated correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
dhoffmann1979 committed Aug 26, 2024
1 parent ded5a1e commit 1affaae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/Utility/LogUtility.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@
* This copyright notice MUST APPEAR in all copies of the script!
*/

use Psr\Log\LogLevel;
use TYPO3\CMS\Core\Log\LogLevel;
use TYPO3\CMS\Core\Messaging\AbstractMessage;

class LogUtility
{
public static function translateLogLevelToSeverity(int $logLevel): int
{
switch ($logLevel) {
switch (LogLevel::getInternalName($logLevel)) {
case LogLevel::DEBUG:
$severity = AbstractMessage::NOTICE;
break;
Expand Down

0 comments on commit 1affaae

Please sign in to comment.