mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-01-26 17:29:12 +01:00
log stacktrace of failed api token parsing only if trace is enabled
This commit is contained in:
@@ -62,7 +62,10 @@ class ApiKeyTokenHandler {
|
||||
try {
|
||||
return of(OBJECT_MAPPER.readValue(decoder.decode(token), Token.class));
|
||||
} catch (IOException e) {
|
||||
LOG.debug("failed to read api token, perhaps it is a jwt token or a normal password", e);
|
||||
LOG.debug("failed to read api token, perhaps it is a jwt token or a normal password");
|
||||
if (LOG.isTraceEnabled()) {
|
||||
LOG.trace("failed to parse token", e);
|
||||
}
|
||||
return empty();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user