changed level in verbose logs

This commit is contained in:
Konstantinos Spyrou 2023-01-31 14:35:48 +02:00
parent fdd597cf02
commit 1a3399f7d7
2 changed files with 4 additions and 4 deletions

View File

@ -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()));

View File

@ -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;
}