10000 Change the log level for 4xx HttpExceptions? by mpdude · Pull Request #7993 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Change the log level for 4xx HttpExceptions? #7993

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
E3E5 2 changes: 2 additions & 0 deletions src/Symfony/Component/HttpKernel/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ CHANGELOG
* added the collect of data if a controller is a Closure in the Request collector
* pass exceptions from the ExceptionListener to the logger using the logging context to allow for more
detailed messages
* in `Symfony\Component\HttpKernel\EventListener\ExceptionListener`, reduced the logging level for HttpExceptions with
4xx status codes from "error" to "notice"

2.2.0
-----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ protected function logException(\Exception $exception, $message, $original = tru
if ($isCritical) {
$this->logger->critical($message, $context);
} else {
$this->logger->error($message, $context);
$this->logger->notice($message, $context);
}
} elseif (!$original || $isCritical) {
error_log($message);
Expand Down
0