System.err -> log4j
authorwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Tue, 17 Sep 2002 16:13:54 +0000 (16:13 +0000)
committerwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Tue, 17 Sep 2002 16:13:54 +0000 (16:13 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@302 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/aaLocal/attributes/eduPersonPrincipalName.java

index da93dcc..0dccf48 100644 (file)
@@ -12,9 +12,13 @@ package edu.internet2.middleware.shibboleth.aaLocal.attributes;
 import edu.internet2.middleware.eduPerson.*;
 import edu.internet2.middleware.shibboleth.common.Constants; 
 import edu.internet2.middleware.shibboleth.aa.ShibAttribute;
+
+import org.apache.log4j.Logger;
 import org.opensaml.*;
 
 public class eduPersonPrincipalName implements ShibAttribute{
+       
+       private static Logger log = Logger.getLogger(SAMLResponse.class.getName());
     
 
     public SAMLAttribute toSamlAttribute(String defaultScope, Object[] values)
@@ -25,7 +29,7 @@ public class eduPersonPrincipalName implements ShibAttribute{
        String eppn = (String)values[0];
 
        int x = eppn.indexOf("@") ;
-       System.out.println("EPPN: "+eppn+"    @ at "+x);
+       log.debug("EPPN: "+eppn+"    @ at "+x);
        if(x > 0){
            vals[0] = eppn.substring(0,x);
            scopes[0] = eppn.substring(x+1);