mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix(log): map all warnings to warn log level, notice to info
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
parent
b2de24e805
commit
e736823fc7
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