mirror of
https://github.com/nextcloud/server.git
synced 2026-04-28 17:48:40 -04:00
Merge pull request #53127 from nextcloud/backport/53124/stable31
[stable31] fix(log): map all warnings to warn log level, notice to info
This commit is contained in:
commit
2cfaaffa47
1 changed files with 2 additions and 2 deletions
|
|
@ -72,9 +72,9 @@ class ErrorHandler {
|
|||
|
||||
private static function errnoToLogLevel(int $errno): int {
|
||||
return match ($errno) {
|
||||
E_USER_WARNING => ILogger::WARN,
|
||||
E_WARNING, E_USER_WARNING => ILogger::WARN,
|
||||
E_DEPRECATED, E_USER_DEPRECATED => ILogger::DEBUG,
|
||||
E_USER_NOTICE => ILogger::INFO,
|
||||
E_NOTICE, E_USER_NOTICE => ILogger::INFO,
|
||||
default => ILogger::ERROR,
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue