changeset 832:2afcb04f56a4

remove NCSARequestLog._ignorePaths
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 16 Sep 2016 00:35:35 -0600
parents 86338c0029a9
children 83765eb09bef
files src/org/eclipse/jetty/server/NCSARequestLog.java
diffstat 1 files changed, 0 insertions(+), 36 deletions(-) [+]
line wrap: on
line diff
--- a/src/org/eclipse/jetty/server/NCSARequestLog.java	Fri Sep 16 00:26:23 2016 -0600
+++ b/src/org/eclipse/jetty/server/NCSARequestLog.java	Fri Sep 16 00:35:35 2016 -0600
@@ -72,7 +72,6 @@
 	private String _filenameDateFormat = null;
 	private Locale _logLocale = Locale.getDefault();
 	private String _logTimeZone = "GMT";
-	private String[] _ignorePaths;
 	private boolean _logLatency = false;
 	private boolean _logCookies = false;
 	private boolean _logServer = false;
@@ -81,7 +80,6 @@
 	private transient OutputStream _out;
 	private transient OutputStream _fileOut;
 	private transient DateCache _logDateCache;
-	private transient PathMap _ignorePathMap;
 	private transient Writer _writer;
 
 	/* ------------------------------------------------------------ */
@@ -294,28 +292,6 @@
 
 	/* ------------------------------------------------------------ */
 	/**
-	 * Set request paths that will not be logged.
-	 * 
-	 * @param ignorePaths array of request paths
-	 */
-	public void setIgnorePaths(String[] ignorePaths)
-	{
-		_ignorePaths = ignorePaths;
-	}
-
-	/* ------------------------------------------------------------ */
-	/**
-	 * Retrieve the request paths that will not be logged.
-	 * 
-	 * @return array of request paths
-	 */
-	public String[] getIgnorePaths()
-	{
-		return _ignorePaths;
-	}
-
-	/* ------------------------------------------------------------ */
-	/**
 	 * Controls logging of the request cookies.
 	 * 
 	 * @param logCookies true - values of request cookies will be logged,
@@ -463,9 +439,6 @@
 	{
 		try
 		{
-			if (_ignorePathMap != null && _ignorePathMap.getMatch(request.getRequestURI()) != null)
-				return;
-
 			if (_fileOut == null)
 				return;
 
@@ -664,15 +637,6 @@
 
 		_out = _fileOut;
 
-		if (_ignorePaths != null && _ignorePaths.length > 0)
-		{
-			_ignorePathMap = new PathMap();
-			for (int i = 0; i < _ignorePaths.length; i++)
-				_ignorePathMap.put(_ignorePaths[i],_ignorePaths[i]);
-		}
-		else
-			_ignorePathMap = null;
-
 		synchronized(this)
 		{
 			_writer = new OutputStreamWriter(_out);