Skip to content

Commit a10a52f

Browse files
Merge pull request nextcloud#53124 from nextcloud/fix/log/map-all-warning-notice
2 parents b2de24e + e736823 commit a10a52f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/private/Log/ErrorHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ public function onAll(int $number, string $message, string $file, int $line): bo
7272

7373
private static function errnoToLogLevel(int $errno): int {
7474
return match ($errno) {
75-
E_USER_WARNING => ILogger::WARN,
75+
E_WARNING, E_USER_WARNING => ILogger::WARN,
7676
E_DEPRECATED, E_USER_DEPRECATED => ILogger::DEBUG,
77-
E_USER_NOTICE => ILogger::INFO,
77+
E_NOTICE, E_USER_NOTICE => ILogger::INFO,
7878
default => ILogger::ERROR,
7979
};
8080
}

0 commit comments

Comments
 (0)