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/gui/layer/gpx/GpxDrawHelper.java

    r12367 r12620  
    5555import org.openstreetmap.josm.tools.ColorScale;
    5656import org.openstreetmap.josm.tools.JosmRuntimeException;
     57import org.openstreetmap.josm.tools.Logging;
    5758import org.openstreetmap.josm.tools.Utils;
    5859
     
    280281            return ColorMode.fromIndex(i);
    281282        } catch (IndexOutOfBoundsException e) {
    282             Main.warn(e);
     283            Logging.warn(e);
    283284        }
    284285        return ColorMode.NONE;
     
    472473
    473474        // show some debug info
    474         if (Main.isDebugEnabled() && !visibleSegments.isEmpty()) {
     475        if (Logging.isDebugEnabled() && !visibleSegments.isEmpty()) {
    475476            final long timeDiff = System.currentTimeMillis() - timeStart;
    476477
    477             Main.debug("gpxdraw::draw takes " +
     478            Logging.debug("gpxdraw::draw takes " +
    478479                         Utils.getDurationString(timeDiff) +
    479480                         "(" +
Note: See TracChangeset for help on using the changeset viewer.