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/preferences/server/ApiUrlTestTask.java

    r10627 r12620  
    1313import javax.xml.parsers.ParserConfigurationException;
    1414
    15 import org.openstreetmap.josm.Main;
    1615import org.openstreetmap.josm.gui.HelpAwareOptionPane;
    1716import org.openstreetmap.josm.gui.PleaseWaitRunnable;
     
    2120import org.openstreetmap.josm.tools.CheckParameterUtil;
    2221import org.openstreetmap.josm.tools.HttpClient;
     22import org.openstreetmap.josm.tools.Logging;
    2323import org.xml.sax.InputSource;
    2424import org.xml.sax.SAXException;
     
    191191                Capabilities.CapabilitiesParser.parse(new InputSource(connection.getResponse().getContent()));
    192192            } catch (SAXException | ParserConfigurationException e) {
    193                 Main.warn(e);
     193                Logging.warn(e);
    194194                alertInvalidCapabilities();
    195195                return;
     
    200200                // ignore exceptions
    201201                return;
    202             Main.error(e);
     202            Logging.error(e);
    203203            alertConnectionFailed();
    204204            return;
Note: See TracChangeset for help on using the changeset viewer.