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/plugins/ReadLocalPluginInformationTask.java

    r10965 r12620  
    1414import java.util.Map;
    1515
    16 import org.openstreetmap.josm.Main;
    1716import org.openstreetmap.josm.gui.PleaseWaitRunnable;
    1817import org.openstreetmap.josm.gui.progress.NullProgressMonitor;
    1918import org.openstreetmap.josm.gui.progress.ProgressMonitor;
    2019import org.openstreetmap.josm.io.OsmTransferException;
     20import org.openstreetmap.josm.tools.Logging;
    2121import org.xml.sax.SAXException;
    2222
     
    9696                processLocalPluginInformationFile(f);
    9797            } catch (PluginListParseException e) {
    98                 Main.warn(tr("Failed to scan file ''{0}'' for plugin information. Skipping.", fname));
    99                 Main.error(e);
     98                Logging.warn(tr("Failed to scan file ''{0}'' for plugin information. Skipping.", fname));
     99                Logging.error(e);
    100100            }
    101101            monitor.worked(1);
     
    123123                }
    124124            } catch (PluginException e) {
    125                 Main.warn(e, "PluginException: ");
    126                 Main.warn(tr("Failed to scan file ''{0}'' for plugin information. Skipping.", fname));
     125                Logging.log(Logging.LEVEL_WARN, "PluginException: ", e);
     126                Logging.warn(tr("Failed to scan file ''{0}'' for plugin information. Skipping.", fname));
    127127            }
    128128            monitor.worked(1);
Note: See TracChangeset for help on using the changeset viewer.