8000 feature #31554 [SECURITY] AbstractAuthenticationListener.php error in… · symfony/symfony@87a6f04 · GitHub
[go: up one dir, main page]

Skip to content

Commit 87a6f04

Browse files
committed
feature #31554 [SECURITY] AbstractAuthenticationListener.php error instead info. Rebase of #28462 (berezuev)
This PR was merged into the 4.4 branch. Discussion ---------- [SECURITY] AbstractAuthenticationListener.php error instead info. Rebase of #28462 | Q | A | ------------- | --- | Branch? | 4.4 | -- | -- | Bug fix? | yes | New feature? | no | BC breaks? | no I think | Deprecations? | no | Tests pass? | yes | Fixed tickets | ... | License | MIT Rebase of #28462. Origin description: > ``` > [2018-09-13 20:43:38] security.INFO: Authentication request failed. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\AuthenticationServiceException(code: 0): An exception occurred while executing > ... > Doctrine\\DBAL\\Driver\\PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 't0.phone' in 'field list' at > ``` > > Definitely I think this is NOT info, but error. > And since it's info, it's not logged in production because of `fingers_crossed` with `action_level: error` - so to actually see the real error behind `Authentication request could not be processed due to a system problem.` I had to debug on production. Very bad practice IMHO. Commits ------- 867eb78 [SECURITY] AbstractAuthenticationListener.php error instead info. Rebase of #28462
2 parents 14614bd + 867eb78 commit 87a6f04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Security/Http/Firewall/AbstractAuthenticationListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ abstract protected function attemptAuthentication(Request $request);
176176
private function onFailure(Request $request, AuthenticationException $failed)
177177
{
178178
if (null !== $this->logger) {
179-
$this->logger->info('Authentication request failed.', ['exception' => $failed]);
179+
$this->logger->error('Authentication request failed.', ['exception' => $failed]);
180180
}
181181

182182
$token = $this->tokenStorage->getToken();

0 commit comments

Comments
 (0)
0