You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by GitBox <gi...@apache.org> on 2021/06/08 10:51:16 UTC

[GitHub] [knox] smolnar82 opened a new pull request #455: KNOX-2618 - INFO level logging added about removing expired tokens from the DB

smolnar82 opened a new pull request #455:
URL: https://github.com/apache/knox/pull/455


   ## What changes were proposed in this pull request?
   
   Instead of logging the number of expired tokens removed from the DB at `DEBUG` level, Knox logs the 
   
   ## How was this patch tested?
   
   Tested manually:
   ```
   2021-06-08 12:45:54,837 INFO  service.knoxtoken (TokenResource.java:getAuthenticationToken(570)) - Knox Token service (homepage) issued token eyJqa3...sHsZgg (ab56217a...aa2afedee2bc)
   2021-06-08 12:45:56,445 INFO  service.knoxtoken (TokenResource.java:getAuthenticationToken(570)) - Knox Token service (homepage) issued token eyJqa3...qC7Kag (99212174...e50a90ccffa5)
   2021-06-08 12:45:57,793 INFO  service.knoxtoken (TokenResource.java:getAuthenticationToken(570)) - Knox Token service (homepage) issued token eyJqa3...WG117A (9bf33980...be4eb1ac08dc)
   2021-06-08 12:45:58,925 INFO  service.knoxtoken (TokenResource.java:getAuthenticationToken(570)) - Knox Token service (homepage) issued token eyJqa3...RC_BwQ (895a34a8...69d0574a7324)
   2021-06-08 12:45:59,887 INFO  service.knoxtoken (TokenResource.java:getAuthenticationToken(570)) - Knox Token service (homepage) issued token eyJqa3...qZUNtw (65bf1dfa...b52853a1053f)
   2021-06-08 12:46:00,754 INFO  service.knoxtoken (TokenResource.java:getAuthenticationToken(570)) - Knox Token service (homepage) issued token eyJqa3...RnkKRA (3a7824b7...a37942c02ce9)
   ...
   2021-06-08 12:47:09,483 INFO  token.state (JDBCTokenStateService.java:evictExpiredTokens(218)) - Removing 6 expired token(s) from the database: 895a34a8...69d0574a7324, ab56217a...aa2afedee2bc, 3a7824b7...a37942c02ce9, 65bf1dfa...b52853a1053f, 99212174...e50a90ccffa5, 9bf33980...be4eb1ac08dc
   2021-06-08 12:47:09,491 INFO  token.state (DefaultTokenStateService.java:getExpiredTokens(372)) - Evicting expired token 3a7824b7...a37942c02ce9
   2021-06-08 12:47:09,492 INFO  token.state (DefaultTokenStateService.java:getExpiredTokens(372)) - Evicting expired token 895a34a8...69d0574a7324
   2021-06-08 12:47:09,492 INFO  token.state (DefaultTokenStateService.java:getExpiredTokens(372)) - Evicting expired token ab56217a...aa2afedee2bc
   2021-06-08 12:47:09,492 INFO  token.state (DefaultTokenStateService.java:getExpiredTokens(372)) - Evicting expired token 99212174...e50a90ccffa5
   2021-06-08 12:47:09,492 INFO  token.state (DefaultTokenStateService.java:getExpiredTokens(372)) - Evicting expired token 9bf33980...be4eb1ac08dc
   2021-06-08 12:47:09,492 INFO  token.state (DefaultTokenStateService.java:getExpiredTokens(372)) - Evicting expired token 65bf1dfa...b52853a1053f
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [knox] smolnar82 merged pull request #455: KNOX-2618 - INFO level logging added about removing expired tokens from the DB

Posted by GitBox <gi...@apache.org>.
smolnar82 merged pull request #455:
URL: https://github.com/apache/knox/pull/455


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org