Skip to content
Permalink
Browse files
Improving log output.
  • Loading branch information
myrle-krantz committed Jul 12, 2017
1 parent 48c53dc commit 33e0368b61ba3d405db1022a7aed00e71d7ef5dc
Showing 1 changed file with 2 additions and 2 deletions.
@@ -87,10 +87,10 @@ public AnubisAuthentication authenticate(
}
catch (final JwtException e) {
logger.debug("token = {}", token);
logger.info("System token for user {}, with key timestamp {} failed to authenticate. Exception was {}", user, keyTimestamp, e);
logger.info("System token for user {}, with key timestamp {} failed to authenticate. Exception was {}", user, keyTimestamp, e.getMessage());
throw AmitAuthenticationException.invalidToken();
} catch (final InvalidKeyTimestampException e) {
logger.info("System token for user {}, with key timestamp {} failed to authenticate. Exception was {}", user, keyTimestamp, e);
logger.info("System token for user {}, with key timestamp {} failed to authenticate. Exception was {}", user, keyTimestamp, e.getMessage());
throw AmitAuthenticationException.invalidTokenKeyTimestamp("system", keyTimestamp);
}
}

0 comments on commit 33e0368

Please sign in to comment.