Changeset 19131 in josm for trunk


Ignore:
Timestamp:
2024-07-08T15:33:06+02:00 (4 months ago)
Author:
taylor.smock
Message:

See #23785: Log when an imagery layer is removed due to validity reasons

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/imagery/ImageryLayerInfo.java

    r18989 r19131  
    22package org.openstreetmap.josm.data.imagery;
    33
     4import static java.util.function.Predicate.not;
    45import static org.openstreetmap.josm.tools.I18n.tr;
    56
     
    168169                Collection<ImageryInfo> result = reader.parse();
    169170                // See #23485 (remove invalid source entries)
    170                 result.removeIf(info -> !info.isValid());
     171                result.stream().filter(not(ImageryInfo::isValid)).forEach(info -> Logging.error("Not adding invalid imagery: {0}", info));
     172                result.removeIf(not(ImageryInfo::isValid));
    171173                newLayers.addAll(result);
    172174            } catch (IOException ex) {
Note: See TracChangeset for help on using the changeset viewer.