diff --git a/src/main/java/eu/dnetlib/repo/manager/service/RepositoryServiceImpl.java b/src/main/java/eu/dnetlib/repo/manager/service/RepositoryServiceImpl.java index 63bef35..8aee836 100644 --- a/src/main/java/eu/dnetlib/repo/manager/service/RepositoryServiceImpl.java +++ b/src/main/java/eu/dnetlib/repo/manager/service/RepositoryServiceImpl.java @@ -217,8 +217,8 @@ public class RepositoryServiceImpl implements RepositoryService { resultSet = objectMapper.readValue(objectMapper.writeValueAsString(datasourceDetailsList), objectMapper.getTypeFactory().constructCollectionType(List.class, RepositorySnippet.class)); - if (logger.isDebugEnabled()) { - logger.debug("resultSet: {}", objectMapper.writeValueAsString(resultSet)); + if (logger.isTraceEnabled()) { + logger.trace("resultSet: {}", objectMapper.writeValueAsString(resultSet)); } resultSet.parallelStream().forEach(repositorySnippet -> { repositorySnippet.setPiwikInfo(piWikService.getPiwikSiteForRepo(repositorySnippet.getId())); diff --git a/src/main/java/eu/dnetlib/repo/manager/service/security/AuthorizationServiceImpl.java b/src/main/java/eu/dnetlib/repo/manager/service/security/AuthorizationServiceImpl.java index 4ce5e70..af8647e 100644 --- a/src/main/java/eu/dnetlib/repo/manager/service/security/AuthorizationServiceImpl.java +++ b/src/main/java/eu/dnetlib/repo/manager/service/security/AuthorizationServiceImpl.java @@ -131,8 +131,8 @@ public class AuthorizationServiceImpl implements AuthorizationService { UserInfo userInfo = ((OIDCAuthenticationToken) SecurityContextHolder.getContext().getAuthentication()).getUserInfo(); roles = getUserRolesByEmail(userInfo.getEmail()); - if (logger.isDebugEnabled()) { - logger.debug("User Roles: {}", String.join(",", roles)); + if (logger.isTraceEnabled()) { + logger.trace("User Roles: {}", String.join(",", roles)); } return roles; }