Project

General

Profile

« Previous | Next » 

Revision d8a13c97

Added by Andreas Müller over 2 years ago

cleanup

View differences:

src/main/java/eu/etaxonomy/cdm/server/logging/InstanceLogWrapper.java
24 24
 */
25 25
public class InstanceLogWrapper extends HandlerWrapper {
26 26

  
27

  
28 27
    /**
29 28
     * Key under which the instance name stored in the
30 29
     * Mapped Diagnostic Context (MDC)
......
38 37
    }
39 38

  
40 39
    @Override
41
    public void handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
42
    {
40
    public void handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response)
41
                throws IOException, ServletException {
42

  
43 43
        // Collect Info for NDC/MDC
44 44
        MDC.put(CDM_INSTANCE, instanceName);
45
        try
46
        {
45
        try {
47 46
            super.handle(target, baseRequest, request, response);
48 47
        }
49
        finally
50
        {
48
        finally {
51 49
            // Pop info out / clear the NDC/MDC
52 50
            MDC.clear();
53 51
        }
54 52
    }
55

  
56
}
53
}

Also available in: Unified diff