Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e71c897

Browse files
committed
Log http 4xx as warning
1 parent e8b62bb commit e71c897

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpKernel/EventListener/ExceptionListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ protected function getExceptionLogLevel(\Exception $exception): LogLevel
9393
if (isset($this->httpStatusCodeLogLevel[$statusCode])) {
9494
$logLevel = $this->httpStatusCodeLogLevel[$statusCode];
9595
} elseif ($statusCode < 500) {
96-
$logLevel = LogLevel::ERROR;
96+
$logLevel = LogLevel::WARNING;
9797
}
9898
}
9999

0 commit comments

Comments
 (0)