Skip to content

Commit

Permalink
removed some loggers
Browse files Browse the repository at this point in the history
  • Loading branch information
Pranav-b-7 authored and opsmxyuga22 committed Dec 14, 2021
1 parent 8bb2bba commit 0a356d2
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,9 @@ class OpsmxPlatformController {
@RequestParam(value = "permissionId", required = false) String permissionId, HttpServletRequest httpServletRequest) {

String path = httpServletRequest.getRequestURI()
log.info("path : {}", path)
if (CacheUtil.isRegisteredCachingEndpoint(path)){
log.info("is registered endpoint : {}", path)

return handleCaching(path, httpServletRequest, version, type, source, source1, datasourceType, permissionId)
} else {

return opsmxPlatformService.getPlatformResponse4(version, type, source, source1, datasourceType, permissionId)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ public class AuthorizationCachingImpl implements AuthorizationCaching {

@Override
public Map<String, Object> populateAdminAuthCache(String userName, Map<String, Object> response) {
log.info("populating admin auth cache");
log.debug("populating admin auth cache");
return response;
}

@Override
public Map<String, Object> getRecordFromAdminAuthCache(String userName) {
log.info("getting record from admin auth cache");
log.debug("getting record from admin auth cache");
return null;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ public class AdminAuthService implements PlatformCachingService {
@Override
public void cacheResponse(Object response, String userName) {

log.info("caching the response");

String responseBody = gson.toJson(response);
Map<String, Object> adminAuthResponse = gson.fromJson(responseBody, Map.class);
authorizationCaching.populateAdminAuthCache(userName, adminAuthResponse);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public interface CacheUtil {
static boolean isRegisteredCachingEndpoint(String path) {
boolean flag = Boolean.FALSE;
path = formatPath(path);
logger.info("formatted path : {}", path);
logger.debug("formatted path : {}", path);
switch (path) {
case Constants.CHECK_IS_ADMIN_ENDPOINT:
flag = Boolean.TRUE;
Expand Down

0 comments on commit 0a356d2

Please sign in to comment.