set log level to debug from info in these 2 files

This commit is contained in:
Rohan Sircar 2020-01-16 19:33:09 +05:30
parent 05ceb6c757
commit 28fb663d55
2 changed files with 4 additions and 8 deletions

View File

@ -2,17 +2,15 @@ package org.ros.chatto.config;
import org.ehcache.event.CacheEvent;
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> {
private static final Logger LOG = LoggerFactory.getLogger(CustomCacheEventLogger.class);
@Override
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());
}
}

View File

@ -43,7 +43,6 @@ public class TokenAuthenticationFilter extends OncePerRequestFilter {
private final int tokenTimeoutDuration;
public TokenAuthenticationFilter(@Value("${chatto.token.timeout-duration}") String tokenTimeoutDuration) {
// super();
this.tokenTimeoutDuration = Integer.parseInt(tokenTimeoutDuration);
}
@ -81,7 +80,6 @@ public class TokenAuthenticationFilter extends OncePerRequestFilter {
throw new BadCredentialsException("User not found");
}
logger.info("Timeout duration = " + tokenTimeoutDuration);
boolean isTokenExpired = isTokenExpired(userToken);
logger.info(String.format("Token for %s is expired? %s", userToken.getUserName(), isTokenExpired));
if (!isTokenExpired) {