From 1a3399f7d7483591781717f28fd62cbef1b40f43 Mon Sep 17 00:00:00 2001 From: Konstantinos Spyrou Date: Tue, 31 Jan 2023 14:35:48 +0200 Subject: [PATCH] changed level in verbose logs --- .../dnetlib/repo/manager/service/RepositoryServiceImpl.java | 4 ++-- .../manager/service/security/AuthorizationServiceImpl.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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; }