hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1570195 - in /httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn: LoggingInputStream.java LoggingOutputStream.java
Date Thu, 20 Feb 2014 14:07:42 GMT
Author: olegk
Date: Thu Feb 20 14:07:41 2014
New Revision: 1570195

URL: http://svn.apache.org/r1570195
Log:
Log operation that caused an I/O error

Modified:
    httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/LoggingInputStream.java
    httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/LoggingOutputStream.java

Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/LoggingInputStream.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/LoggingInputStream.java?rev=1570195&r1=1570194&r2=1570195&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/LoggingInputStream.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/LoggingInputStream.java
Thu Feb 20 14:07:41 2014
@@ -60,7 +60,7 @@ class LoggingInputStream extends InputSt
             }
             return b;
         } catch (IOException ex) {
-            wire.input("I/O error: " + ex.getMessage());
+            wire.input("[read] I/O error: " + ex.getMessage());
             throw ex;
         }
     }
@@ -76,7 +76,7 @@ class LoggingInputStream extends InputSt
             }
             return bytesRead;
         } catch (IOException ex) {
-            wire.input("I/O error: " + ex.getMessage());
+            wire.input("[read] I/O error: " + ex.getMessage());
             throw ex;
         }
     }
@@ -92,7 +92,7 @@ class LoggingInputStream extends InputSt
             }
             return bytesRead;
         } catch (IOException ex) {
-            wire.input("I/O error: " + ex.getMessage());
+            wire.input("[read] I/O error: " + ex.getMessage());
             throw ex;
         }
     }
@@ -102,7 +102,7 @@ class LoggingInputStream extends InputSt
         try {
             return super.skip(n);
         } catch (IOException ex) {
-            wire.input("I/O error: " + ex.getMessage());
+            wire.input("[skip] I/O error: " + ex.getMessage());
             throw ex;
         }
     }
@@ -112,7 +112,7 @@ class LoggingInputStream extends InputSt
         try {
             return in.available();
         } catch (IOException ex) {
-            wire.input("I/O error: " + ex.getMessage());
+            wire.input("[available] I/O error : " + ex.getMessage());
             throw ex;
         }
     }
@@ -137,7 +137,7 @@ class LoggingInputStream extends InputSt
         try {
             in.close();
         } catch (IOException ex) {
-            wire.input("I/O error: " + ex.getMessage());
+            wire.input("[close] I/O error: " + ex.getMessage());
             throw ex;
         }
     }

Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/LoggingOutputStream.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/LoggingOutputStream.java?rev=1570195&r1=1570194&r2=1570195&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/LoggingOutputStream.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/LoggingOutputStream.java
Thu Feb 20 14:07:41 2014
@@ -54,7 +54,7 @@ class LoggingOutputStream extends Output
         try {
             wire.output(b);
         } catch (IOException ex) {
-            wire.input("I/O error: " + ex.getMessage());
+            wire.output("[write] I/O error: " + ex.getMessage());
             throw ex;
         }
     }
@@ -65,7 +65,7 @@ class LoggingOutputStream extends Output
             wire.output(b);
             out.write(b);
         } catch (IOException ex) {
-            wire.input("I/O error: " + ex.getMessage());
+            wire.output("[write] I/O error: " + ex.getMessage());
             throw ex;
         }
     }
@@ -76,7 +76,7 @@ class LoggingOutputStream extends Output
             wire.output(b, off, len);
             out.write(b, off, len);
         } catch (IOException ex) {
-            wire.input("I/O error: " + ex.getMessage());
+            wire.output("[write] I/O error: " + ex.getMessage());
             throw ex;
         }
     }
@@ -86,7 +86,7 @@ class LoggingOutputStream extends Output
         try {
             out.flush();
         } catch (IOException ex) {
-            wire.input("I/O error: " + ex.getMessage());
+            wire.output("[flush] I/O error: " + ex.getMessage());
             throw ex;
         }
     }
@@ -96,7 +96,7 @@ class LoggingOutputStream extends Output
         try {
             out.close();
         } catch (IOException ex) {
-            wire.input("I/O error: " + ex.getMessage());
+            wire.output("[close] I/O error: " + ex.getMessage());
             throw ex;
         }
     }



Mime
View raw message