/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.util.ExceptionUtils
 *  org.apache.catalina.connector.Request
 *  org.apache.catalina.connector.Response
 *  org.apache.catalina.valves.ErrorReportValve
 */
package com.l7tech.server.tomcat;

import com.l7tech.util.ExceptionUtils;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.apache.catalina.connector.Request;
import org.apache.catalina.connector.Response;
import org.apache.catalina.valves.ErrorReportValve;

public class SsgErrorReportValve
extends ErrorReportValve {
    private static final Logger a = Logger.getLogger(SsgErrorReportValve.class.getName());

    public SsgErrorReportValve() {
        this.setShowReport(false);
        this.setShowServerInfo(false);
    }

    protected void report(Request request, Response response, Throwable throwable) {
        if (a.isLoggable(Level.FINE)) {
            a.log(Level.FINE, ExceptionUtils.getMessage((Throwable)throwable), ExceptionUtils.getDebugException((Throwable)throwable));
        }
        super.report(request, response, throwable);
    }
}

