mirror of
https://github.com/nextcloud/server.git
synced 2026-03-18 16:45:22 -04:00
Merge pull request #53126 from nextcloud/backport/53124/stable30
[stable30] fix(log): map all warnings to warn log level, notice to info
This commit is contained in:
commit
86bf0eb4ad
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