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/cache/HostLimitQueue.java

    r11546 r12620  
    1212import java.util.concurrent.TimeUnit;
    1313
    14 import org.openstreetmap.josm.Main;
     14import org.openstreetmap.josm.tools.Logging;
    1515
    1616/**
     
    6767                        url = job.getUrl();
    6868                    } catch (IOException e) {
    69                         Main.debug(e);
     69                        Logging.debug(e);
    7070                    }
    71                     Main.debug("TMS - Skipping job {0} because host limit reached", url);
     71                    Logging.debug("TMS - Skipping job {0} because host limit reached", url);
    7272                }
    7373            }
     
    9090                // acquire my got interrupted, first offer back what was taken
    9191                if (!offer(job)) {
    92                     Main.warn("Unable to offer back " + job);
     92                    Logging.warn("Unable to offer back " + job);
    9393                }
    9494                throw e;
     
    110110            // acquire my got interrupted, first offer back what was taken
    111111            if (!offer(job)) {
    112                 Main.warn("Unable to offer back " + job);
     112                Logging.warn("Unable to offer back " + job);
    113113            }
    114114            throw e;
     
    209209            limit.release();
    210210            if (limit.availablePermits() > hostLimit) {
    211                 Main.warn("More permits than it should be");
     211                Logging.warn("More permits than it should be");
    212212            }
    213213        }
Note: See TracChangeset for help on using the changeset viewer.