Changeset 30865 in osm for applications/editors/josm/plugins/czechaddress/src
- Timestamp:
- 2014-12-19T18:17:20+01:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/parser/DatabaseParser.java
r30864 r30865 52 52 53 53 if (!(new File(getDatabasePath())).exists()) { 54 System.err.println("CzechAddress: Soubor s databází českých adres na disku nenalazen. Pokusím se jej stáhnout.");54 Main.info("CzechAddress: Soubor s databází českých adres na disku nenalazen. Pokusím se jej stáhnout."); 55 55 downloadDatabase(); 56 56 } … … 98 98 HttpURLConnection con = (HttpURLConnection)url.openConnection(); 99 99 100 //Set timeout for 10 seconds.101 con.setReadTimeout( 10000);100 //Set timeout for 30 seconds. 101 con.setReadTimeout(30000); 102 102 con.connect(); 103 103 104 System.err.println("CzechAddress: Stahuji: " + url.toString());105 System.err.println("CzechAddress: Server vrátil: " + con.getResponseMessage());104 Main.info("CzechAddress: Stahuji: " + url.toString()); 105 Main.info("CzechAddress: Server vrátil: " + con.getResponseMessage()); 106 106 107 107 // Check the status error code from server … … 116 116 bos.write(buffer, 0, count); 117 117 total += count; 118 Main. error("CzechAddress: MVČR database: " + String.valueOf(total/1024) + " kb downloaded.");118 Main.info("CzechAddress: MVČR database: " + String.valueOf(total/1024) + " kb downloaded."); 119 119 } 120 120 }
Note:
See TracChangeset
for help on using the changeset viewer.