More log interleaving.
authorwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Tue, 17 Sep 2002 16:21:48 +0000 (16:21 +0000)
committerwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Tue, 17 Sep 2002 16:21:48 +0000 (16:21 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@303 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

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

index 9c34304..c290f86 100755 (executable)
@@ -147,7 +147,7 @@ public class AAServlet extends HttpServlet {
     public void doPost(HttpServletRequest req, HttpServletResponse resp)
         throws ServletException, IOException {
                
-       log.info("Recieved a request.");
+       log.debug("Recieved a request.");
        MDC.put("serviceId", UUIDGenerator.getInstance().generateRandomBasedUUID());
        MDC.put("remoteAddr", req.getRemoteAddr());
        log.info("Handling request.");
index ece3265..19357e4 100644 (file)
@@ -58,6 +58,8 @@ import edu.internet2.middleware.shibboleth.common.*;
 import org.opensaml.*;
 import sun.misc.BASE64Decoder;
 import org.apache.log4j.Logger;
+import org.apache.log4j.MDC;
+import org.doomdark.uuid.UUIDGenerator;
 
 public class HandleServlet extends HttpServlet {
 
@@ -68,10 +70,12 @@ public class HandleServlet extends HttpServlet {
     private String rep;
     private static Logger log = Logger.getLogger(HandleServlet.class.getName());; 
 
-    public void init(ServletConfig conf)
+    public void init()
        throws ServletException
     {
-       super.init(conf);
+    
+    MDC.put("serviceId", "[HS Core]");
+       
        ServletConfig sc = getServletConfig();
        ServletContext sctx = sc.getServletContext();
 
@@ -176,7 +180,10 @@ public class HandleServlet extends HttpServlet {
        throws ServletException, IOException
     {
 
-
+       log.debug("Recieved a request.");
+       MDC.put("serviceId", UUIDGenerator.getInstance().generateRandomBasedUUID());
+       MDC.put("remoteAddr", req.getRemoteAddr());
+       log.info("Handling request.");
 
        HandleEntry he = null;