Project

General

Profile

« Previous | Next » 

Revision 10369

Added by Chris Jones about 7 years ago

Convert System.out.println() calls

We've had these calls printing to the log on every REST call. Change them to a logger debug() level so we can filter them out.

View differences:

D1HttpRequest.java
55 55
    public String getPathInfo() 
56 56
    {
57 57
        String s = super.getPathInfo();
58
        System.out.println("original pathInfo: " + s);
58
        logMetacat.debug("original pathInfo: " + s);
59 59
        logMetacat.info("D1HttpRequest.getPathInfo - the orignial pathInfo: "+s);
60 60
        String reqUri = this.getRequestURI();
61
        System.out.println("original requestURI: " + reqUri);
61
        logMetacat.debug("original requestURI: " + reqUri);
62 62
        String strip = this.getContextPath() + this.getServletPath();
63
        System.out.println("stripping " + strip + " from requestURI");
63
        logMetacat.debug("stripping " + strip + " from requestURI");
64 64
        s = reqUri.substring(strip.length());
65 65
        /*try
66 66
        {
......
70 70
        {
71 71
            s = URLDecoder.decode(s);
72 72
        }*/
73
        System.out.println("new pathinfo: " + s);
73
        logMetacat.debug("new pathinfo: " + s);
74 74
        logMetacat.info("D1HttpRequest.getPathInfo - the new pathInfo: "+s);
75 75
        return s;
76 76
    }

Also available in: Unified diff