Author: kkolinko
Date: Sat Jan 29 18:23:12 2011
New Revision: 1065089
URL: http://svn.apache.org/viewvc?rev=1065089&view=rev
Log:
Implement debug logging in InternalNioInputBuffer. Log what we got with the
first read.
Modified:
tomcat/trunk/java/org/apache/coyote/http11/InternalNioInputBuffer.java
Modified: tomcat/trunk/java/org/apache/coyote/http11/InternalNioInputBuffer.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http11/InternalNioInputBuffer.java?rev=1065089&r1=1065088&r2=1065089&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/http11/InternalNioInputBuffer.java
(original)
+++ tomcat/trunk/java/org/apache/coyote/http11/InternalNioInputBuffer.java Sat
Jan 29 18:23:12 2011
@@ -39,6 +39,11 @@ import org.apache.tomcat.util.net.NioSel
*/
public class InternalNioInputBuffer extends AbstractInputBuffer {
+ /**
+ * Logger.
+ */
+ private static org.apache.juli.logging.Log log
+ =
org.apache.juli.logging.LogFactory.getLog(InternalNioInputBuffer.class);
// -------------------------------------------------------------- Constants
@@ -228,6 +233,11 @@ public class InternalNioInputBuffer exte
if ( readSocket(true, false)==0 ) return false;
}
parsingRequestLinePhase = 2;
+ if (log.isDebugEnabled()) {
+ log.debug("Received ["
+ + new String(buf, pos, lastValid - pos, "ISO-8859-1")
+ + "]");
+ }
}
if ( parsingRequestLinePhase == 2 ) {
//
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]