hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r408175 - /jakarta/httpcomponents/httpcore/trunk/src/contrib/org/apache/http/contrib/benchmark/BenchmarkWorker.java
Date Sun, 21 May 2006 14:15:48 GMT
Author: olegk
Date: Sun May 21 07:15:48 2006
New Revision: 408175

URL: http://svn.apache.org/viewvc?rev=408175&view=rev
Log:
Print out request / response head at the debug level 3

Modified:
    jakarta/httpcomponents/httpcore/trunk/src/contrib/org/apache/http/contrib/benchmark/BenchmarkWorker.java

Modified: jakarta/httpcomponents/httpcore/trunk/src/contrib/org/apache/http/contrib/benchmark/BenchmarkWorker.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpcore/trunk/src/contrib/org/apache/http/contrib/benchmark/BenchmarkWorker.java?rev=408175&r1=408174&r2=408175&view=diff
==============================================================================
--- jakarta/httpcomponents/httpcore/trunk/src/contrib/org/apache/http/contrib/benchmark/BenchmarkWorker.java
(original)
+++ jakarta/httpcomponents/httpcore/trunk/src/contrib/org/apache/http/contrib/benchmark/BenchmarkWorker.java
Sun May 21 07:15:48 2006
@@ -80,7 +80,7 @@
             try {
                 resetHeader(request);
                 response = this.httpexecutor.execute(request, conn);
-                if (this.verbosity >= 4) {
+                if (this.verbosity >= 3) {
                     System.out.println(">> " + request.getRequestLine().toString());
                     Header[] headers = request.getAllHeaders();
                     for (int h = 0; h < headers.length; h++) {
@@ -88,10 +88,10 @@
                     }
                     System.out.println();
                 }
-                if (this.verbosity >= 3) {
+                if (this.verbosity >= 2) {
                     System.out.println(response.getStatusLine().getStatusCode());
                 }
-                if (this.verbosity >= 4) {
+                if (this.verbosity >= 3) {
                     System.out.println("<< " + response.getStatusLine().toString());
                     Header[] headers = response.getAllHeaders();
                     for (int h = 0; h < headers.length; h++) {



Mime
View raw message