Ignore:
Timestamp:
2017-08-22T22:26:32+02:00 (7 years ago)
Author:
Don-vip
Message:

see #15182 - deprecate all Main logging methods and introduce suitable replacements in Logging for most of them

File:
1 edited

Legend:

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

    r12550 r12620  
    5858import org.openstreetmap.josm.tools.CheckParameterUtil;
    5959import org.openstreetmap.josm.tools.GBC;
     60import org.openstreetmap.josm.tools.Logging;
    6061import org.openstreetmap.josm.tools.Utils;
    6162
     
    293294        this.layers = getCapabilities();
    294295        if (info.getDefaultLayers().isEmpty()) {
    295             Main.warn(tr("No default layer selected, choosing first layer."));
     296            Logging.warn(tr("No default layer selected, choosing first layer."));
    296297            if (!layers.isEmpty()) {
    297298                Layer first = layers.iterator().next();
     
    383384            } catch (XMLStreamException e) {
    384385                cf.clear();
    385                 Main.warn(new String(data, StandardCharsets.UTF_8));
     386                Logging.warn(new String(data, StandardCharsets.UTF_8));
    386387                throw new IllegalArgumentException(e);
    387388            }
     
    491492        if (layer.format == null) {
    492493            // no format found - it's mandatory parameter - can't use this layer
    493             Main.warn(tr("Can''t use layer {0} because no supported formats where found. Layer is available in formats: {1}",
     494            Logging.warn(tr("Can''t use layer {0} because no supported formats where found. Layer is available in formats: {1}",
    494495                    layer.getUserTitle(),
    495496                    String.join(", ", unsupportedFormats)));
     
    725726        }
    726727        // if no layers is found, fallback to default mercator tile size. Maybe it will work
    727         Main.warn("WMTS: Could not determine tile size. Using default tile size of: {0}", getDefaultTileSize());
     728        Logging.warn("WMTS: Could not determine tile size. Using default tile size of: {0}", getDefaultTileSize());
    728729        return getDefaultTileSize();
    729730    }
Note: See TracChangeset for help on using the changeset viewer.