Changeset 12620 in josm for trunk/src/org/openstreetmap/josm/io/MultiFetchServerObjectReader.java
- Timestamp:
- 2017-08-22T22:26:32+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/MultiFetchServerObjectReader.java
r11809 r12620 38 38 import org.openstreetmap.josm.gui.progress.NullProgressMonitor; 39 39 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 40 import org.openstreetmap.josm.tools.Logging; 40 41 import org.openstreetmap.josm.tools.Utils; 41 42 … … 51 52 * reader.parseOsm(); 52 53 * if (!reader.getMissingPrimitives().isEmpty()) { 53 * Main.info("There are missing primitives: " + reader.getMissingPrimitives());54 * Logging.info("There are missing primitives: " + reader.getMissingPrimitives()); 54 55 * } 55 56 * if (!reader.getSkippedWays().isEmpty()) { 56 * Main.info("There are skipped ways: " + reader.getMissingPrimitives());57 * Logging.info("There are skipped ways: " + reader.getMissingPrimitives()); 57 58 * } 58 59 * </pre> … … 343 344 } 344 345 } catch (InterruptedException | ExecutionException e) { 345 Main.error(e);346 Logging.error(e); 346 347 } 347 348 } … … 487 488 } catch (OsmApiException e) { 488 489 if (e.getResponseCode() == HttpURLConnection.HTTP_NOT_FOUND) { 489 Main.info(tr("Server replied with response code 404, retrying with an individual request for each object."));490 Logging.info(tr("Server replied with response code 404, retrying with an individual request for each object.")); 490 491 return singleGetIdPackage(type, pkg, progressMonitor); 491 492 } else { … … 524 525 } 525 526 } catch (IOException ex) { 526 Main.warn(ex);527 Logging.warn(ex); 527 528 } 528 529 return result; … … 552 553 } 553 554 } catch (IOException ex) { 554 Main.warn(ex);555 Logging.warn(ex); 555 556 } 556 557 return result; … … 591 592 } catch (OsmApiException e) { 592 593 if (e.getResponseCode() == HttpURLConnection.HTTP_NOT_FOUND) { 593 Main.info(tr("Server replied with response code 404 for id {0}. Skipping.", Long.toString(id)));594 Logging.info(tr("Server replied with response code 404 for id {0}. Skipping.", Long.toString(id))); 594 595 result.missingPrimitives.add(new SimplePrimitiveId(id, type)); 595 596 } else {
Note:
See TracChangeset
for help on using the changeset viewer.