Minimal transaction logging for the AA.
authorwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Sun, 28 Mar 2004 04:15:29 +0000 (04:15 +0000)
committerwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Sun, 28 Mar 2004 04:15:29 +0000 (04:15 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@944 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/aa/AAServlet.java

index e8f549b..c5f0383 100755 (executable)
@@ -320,7 +320,21 @@ public class AAServlet extends TargetFederationComponent {
                        sendResponse(resp, attrs, samlRequest, relyingParty, null);
                        log.info("Successfully responded about " + principal.getName());
 
-                       //TODO place transaction log statement here
+                       if (effectiveName == null) {
+                               if (fromLegacyProvider(req)) {
+                                       transactionLog.info("Attribute assertion issued to anonymous legacy provider at ("
+                                                       + req.getRemoteAddr() + ").");
+                               } else {
+                                       transactionLog.info("Attribute assertion issued to anonymous provider at (" + req.getRemoteAddr()
+                                                       + ").");
+                               }
+                       } else {
+                               if (fromLegacyProvider(req)) {
+                                       transactionLog.info("Attribute assertion issued to legacy provider: (" + effectiveName + ").");
+                               } else {
+                                       transactionLog.info("Attribute assertion issued to provider: (" + effectiveName + ").");
+                               }
+                       }
 
                } catch (Exception e) {
                        log.error("Error while processing request: " + e);