Browse Source

improved logging configuration, removed transactional from service

pull/604/head
Justin Richer 11 years ago
parent
commit
960319b796
  1. 17
      openid-connect-server-webapp/src/main/resources/log4j.xml
  2. 2
      openid-connect-server/src/main/java/org/mitre/oauth2/service/impl/DefaultOAuth2ProviderTokenService.java
  3. 5
      openid-connect-server/src/main/java/org/mitre/openid/connect/service/impl/DefaultApprovedSiteService.java

17
openid-connect-server-webapp/src/main/resources/log4j.xml

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

2
openid-connect-server/src/main/java/org/mitre/oauth2/service/impl/DefaultOAuth2ProviderTokenService.java

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

5
openid-connect-server/src/main/java/org/mitre/openid/connect/service/impl/DefaultApprovedSiteService.java

@ -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…
Cancel
Save