[Schmitzm-commits] r1979 - trunk/schmitzm-core/src/main/java/de/schmitzm/io

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Thu May 3 10:37:11 CEST 2012


Author: mojays
Date: 2012-05-03 10:37:11 +0200 (Thu, 03 May 2012)
New Revision: 1979

Modified:
   trunk/schmitzm-core/src/main/java/de/schmitzm/io/IOUtil.java
Log:
IOUtil: some debug messages in downloadUrlToFile(.)

Modified: trunk/schmitzm-core/src/main/java/de/schmitzm/io/IOUtil.java
===================================================================
--- trunk/schmitzm-core/src/main/java/de/schmitzm/io/IOUtil.java	2012-05-02 22:12:22 UTC (rev 1978)
+++ trunk/schmitzm-core/src/main/java/de/schmitzm/io/IOUtil.java	2012-05-03 08:37:11 UTC (rev 1979)
@@ -617,7 +617,10 @@
           // Note: Problem with read timeout exception remains! :-(
           URLConnection connection = url.openConnection(proxy);
           connection.setConnectTimeout(timeout);
+          LOGGER.debug("Connection timeout set: "+timeout+"ms");
           connection.setReadTimeout(timeout);
+          LOGGER.debug("Read timeout set: "+timeout+"ms");
+          LOGGER.debug("Download: "+url+" to "+file);
           InputStream input = connection.getInputStream();
           copyInputStreamToFile(input, file);
           
@@ -661,6 +664,7 @@
 //            closeOutputStream(output);
 //          }
           
+          LOGGER.debug("Download completed: "+url+" to "+file);
           break;
         } catch ( IOException err ) {
           if ( maxRetries > 0 ) {



More information about the Schmitzm-commits mailing list