improved logging configuration, removed transactional from service

pull/604/head
Justin Richer 2014-05-25 15:38:44 -04:00
parent 85fd4e71ce
commit 960319b796
3 changed files with 20 additions and 4 deletions

View File

@ -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" />

View File

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

View File

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