Add a few logging messages
authorlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Thu, 28 Jun 2007 21:20:54 +0000 (21:20 +0000)
committerlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Thu, 28 Jun 2007 21:20:54 +0000 (21:20 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@2279 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/idp/profile/saml1/AbstractSAML1ProfileHandler.java

index 92e1f42..b43902f 100644 (file)
@@ -449,13 +449,16 @@ public abstract class AbstractSAML1ProfileHandler extends AbstractSAMLProfileHan
                     }
                 }
             } catch (AttributeEncodingException e) {
+                log.error("Unable to construct NameIdentifier", e);
                 requestContext.setFailureStatus(buildStatus(StatusCode.RESPONDER, null,
                         "Unable to construct NameIdentifier"));
                 throw new ProfileException("Unable to encode NameIdentifier attribute", e);
             }
         }
 
-        requestContext.setFailureStatus(buildStatus(StatusCode.RESPONDER, null, "Unable to construct NameID"));
+        log.error("No attributes for principal " + requestContext.getPrincipalName() 
+                + " support constructions of NameIdentifier");
+        requestContext.setFailureStatus(buildStatus(StatusCode.RESPONDER, null, "Unable to construct NameIdentifier"));
         throw new ProfileException("No principal attributes support NameIdentifier construction");
     }