fix(log): map all warnings to warn log level, notice to info

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
pull/53124/head
Christoph Wurst 2025-05-27 08:01:19 +07:00
parent b2de24e805
commit e736823fc7
No known key found for this signature in database
GPG Key ID: CC42AC2A7F0E56D8
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,
};
}