Changeset 36260 in osm for applications/editors


Ignore:
Timestamp:
2024-05-02T14:45:54+02:00 (8 months ago)
Author:
taylor.smock
Message:

See #23658: Add catch clause to get URL for debugging purposes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/MicrosoftStreetside/src/org/openstreetmap/josm/plugins/streetside/io/download/SequenceDownloadRunnable.java

    r36228 r36260  
    1010import java.time.ZoneOffset;
    1111import java.time.format.DateTimeFormatter;
     12import java.time.format.DateTimeParseException;
    1213import java.util.ArrayList;
    1314import java.util.List;
     
    2324import org.openstreetmap.josm.plugins.streetside.utils.StreetsideURL.APIv3;
    2425import org.openstreetmap.josm.tools.JosmRuntimeException;
     26import org.openstreetmap.josm.tools.bugreport.BugReport;
    2527
    2628import jakarta.json.Json;
     
    6870            LOG.log(Level.INFO, "Successfully loaded {0} Microsoft Streetside images in {1} seconds.",
    6971                    new Object[] {this.data.getImages().size(), (endTime - startTime) / 1000});
     72        } catch (DateTimeParseException dateTimeParseException) {
     73            // Added to debug #23658 -- a valid date string caused an exception
     74            BugReport.intercept(dateTimeParseException).put("url", con.getURL()).warn();
    7075        }
    7176    }
Note: See TracChangeset for help on using the changeset viewer.