improved logging configuration, removed transactional from service
parent
85fd4e71ce
commit
960319b796
|
@ -30,7 +30,22 @@
|
|||
<logger name="org.mitre.openid">
|
||||
<level value="info" />
|
||||
</logger>
|
||||
|
||||
<logger name="org.mitre.oauth2">
|
||||
<level value="info" />
|
||||
</logger>
|
||||
<logger name="org.mitre.discovery">
|
||||
<level value="info" />
|
||||
</logger>
|
||||
<logger name="org.mitre.jose">
|
||||
<level value="info" />
|
||||
</logger>
|
||||
<logger name="org.mitre.jwt">
|
||||
<level value="info" />
|
||||
</logger>
|
||||
<logger name="org.mitre.util">
|
||||
<level value="info" />
|
||||
</logger>
|
||||
|
||||
<!-- 3rdparty Loggers -->
|
||||
<logger name="org.springframework.core">
|
||||
<level value="info" />
|
||||
|
|
|
@ -62,7 +62,7 @@ import com.nimbusds.jwt.PlainJWT;
|
|||
* @author jricher
|
||||
*
|
||||
*/
|
||||
@Service
|
||||
@Service("defaultOAuth2ProviderTokenService")
|
||||
public class DefaultOAuth2ProviderTokenService implements OAuth2TokenEntityService {
|
||||
|
||||
private static Logger logger = LoggerFactory.getLogger(DefaultOAuth2ProviderTokenService.class);
|
||||
|
|
|
@ -43,8 +43,7 @@ import com.google.common.collect.Collections2;
|
|||
* @author Michael Joseph Walsh, aanganes
|
||||
*
|
||||
*/
|
||||
@Service
|
||||
@Transactional
|
||||
@Service("defaultApprovedSiteService")
|
||||
public class DefaultApprovedSiteService implements ApprovedSiteService {
|
||||
|
||||
private static Logger logger = LoggerFactory.getLogger(DefaultApprovedSiteService.class);
|
||||
|
@ -159,11 +158,13 @@ public class DefaultApprovedSiteService implements ApprovedSiteService {
|
|||
logger.info("Clearing expired approved sites");
|
||||
|
||||
Collection<ApprovedSite> expiredSites = getExpired();
|
||||
logger.info("Found " + expiredSites.size() + " expired approved sites.");
|
||||
if (expiredSites != null) {
|
||||
for (ApprovedSite expired : expiredSites) {
|
||||
remove(expired);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private Predicate<ApprovedSite> isExpired = new Predicate<ApprovedSite>() {
|
||||
|
|
Loading…
Reference in New Issue