mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
web stat support error 404
This commit is contained in:
@@ -34,8 +34,6 @@ import com.alibaba.druid.util.ServletPathMatcher;
|
||||
|
||||
public class WebStatFilter implements Filter {
|
||||
|
||||
public final static int STATUS_NOT_FOUND = 404;
|
||||
|
||||
public final static String PARAM_NAME_SESSION_STAT_ENABLE = "sessionStatEnable";
|
||||
public final static String PARAM_NAME_SESSION_STAT_MAX_COUNT = "sessionStatMaxCount";
|
||||
public static final String PARAM_NAME_EXCLUSIONS = "exclusions";
|
||||
@@ -134,7 +132,7 @@ public class WebStatFilter implements Filter {
|
||||
}
|
||||
|
||||
if (uriStat == null) {
|
||||
if (responseWrapper.getStatus() == STATUS_NOT_FOUND) {
|
||||
if (responseWrapper.getStatus() == HttpServletResponse.SC_NOT_FOUND) {
|
||||
uriStat = webAppStat.getURIStat("error_404", true);
|
||||
} else {
|
||||
uriStat = webAppStat.getURIStat(requestURI, true);
|
||||
|
||||
Reference in New Issue
Block a user