Skip to content

Commit 86bf0eb

Browse files
Merge pull request #53126 from nextcloud/backport/53124/stable30
[stable30] fix(log): map all warnings to warn log level, notice to info
2 parents eec3b79 + 7b38b30 commit 86bf0eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)