-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Closed
Milestone
Description
Q | A |
---|---|
Bug report? | no |
Feature request? | yes |
BC Break report? | no |
RFC? | no |
Symfony version | 3.3.10 |
I'm having poor DX with an exception logged here:
symfony/src/Symfony/Component/Security/Guard/Firewall/GuardAuthenticationListener.php
Lines 134 to 136 in 2fb303b
if (null !== $this->logger) { | |
$this->logger->info('Guard authentication failed.', array('exception' => $e, 'authenticator' => get_class($guardAuthenticator))); | |
} |
All I get in the profile is a log that looks like this:
[▼
"exception" => InvalidTokenException {#651 ▼
-token: null
#message: "Invalid JWT Token"
#code: 0
#file: "/var/www/html/vendor/lexik/jwt-authentication-bundle/Security/Guard/JWTTokenAuthenticator.php"
#line: 119
-previous: JWTDecodeFailureException {#671 …}
trace: {▶}
}
"authenticator" => "Lexik\Bundle\JWTAuthenticationBundle\Security\Guard\JWTTokenAuthenticator"
]
I debugged a bit further and all the interesting part is buried in previous
, which I can't access here.
Potential solutions:
- showing previous exceptions in the logs tab
- sending logged exceptions to the exceptions data collector