set log level to debug from info in these 2 files
This commit is contained in:
parent
05ceb6c757
commit
28fb663d55
@ -2,17 +2,15 @@ package org.ros.chatto.config;
|
|||||||
|
|
||||||
import org.ehcache.event.CacheEvent;
|
import org.ehcache.event.CacheEvent;
|
||||||
import org.ehcache.event.CacheEventListener;
|
import org.ehcache.event.CacheEventListener;
|
||||||
import org.slf4j.Logger;
|
|
||||||
import org.slf4j.LoggerFactory;
|
|
||||||
|
|
||||||
//@Component
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
|
@Slf4j
|
||||||
public class CustomCacheEventLogger implements CacheEventListener<Object, Object> {
|
public class CustomCacheEventLogger implements CacheEventListener<Object, Object> {
|
||||||
|
|
||||||
private static final Logger LOG = LoggerFactory.getLogger(CustomCacheEventLogger.class);
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onEvent(CacheEvent<? extends Object, ? extends Object> cacheEvent) {
|
public void onEvent(CacheEvent<? extends Object, ? extends Object> cacheEvent) {
|
||||||
LOG.info("custom Caching event {} key = {} old {} new {} ", cacheEvent.getType(), cacheEvent.getKey(),
|
log.debug("custom Caching event {} key = {} old {} new {} ", cacheEvent.getType(), cacheEvent.getKey(),
|
||||||
cacheEvent.getOldValue(), cacheEvent.getNewValue());
|
cacheEvent.getOldValue(), cacheEvent.getNewValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -43,7 +43,6 @@ public class TokenAuthenticationFilter extends OncePerRequestFilter {
|
|||||||
private final int tokenTimeoutDuration;
|
private final int tokenTimeoutDuration;
|
||||||
|
|
||||||
public TokenAuthenticationFilter(@Value("${chatto.token.timeout-duration}") String tokenTimeoutDuration) {
|
public TokenAuthenticationFilter(@Value("${chatto.token.timeout-duration}") String tokenTimeoutDuration) {
|
||||||
// super();
|
|
||||||
this.tokenTimeoutDuration = Integer.parseInt(tokenTimeoutDuration);
|
this.tokenTimeoutDuration = Integer.parseInt(tokenTimeoutDuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -81,7 +80,6 @@ public class TokenAuthenticationFilter extends OncePerRequestFilter {
|
|||||||
throw new BadCredentialsException("User not found");
|
throw new BadCredentialsException("User not found");
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.info("Timeout duration = " + tokenTimeoutDuration);
|
|
||||||
boolean isTokenExpired = isTokenExpired(userToken);
|
boolean isTokenExpired = isTokenExpired(userToken);
|
||||||
logger.info(String.format("Token for %s is expired? %s", userToken.getUserName(), isTokenExpired));
|
logger.info(String.format("Token for %s is expired? %s", userToken.getUserName(), isTokenExpired));
|
||||||
if (!isTokenExpired) {
|
if (!isTokenExpired) {
|
||||||
|
Loading…
Reference in New Issue
Block a user