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/PluginDownloadTask.java

    r12279 r12620  
    2323import org.openstreetmap.josm.tools.CheckParameterUtil;
    2424import org.openstreetmap.josm.tools.HttpClient;
     25import org.openstreetmap.josm.tools.Logging;
    2526import org.xml.sax.SAXException;
    2627
     
    117118            if (pi.downloadlink == null) {
    118119                String msg = tr("Cannot download plugin ''{0}''. Its download link is not known. Skipping download.", pi.name);
    119                 Main.warn(msg);
     120                Logging.warn(msg);
    120121                throw new PluginDownloadException(msg);
    121122            }
     
    131132            String msg = tr("Cannot download plugin ''{0}''. Its download link ''{1}'' is not a valid URL. Skipping download.",
    132133                    pi.name, pi.downloadlink);
    133             Main.warn(msg);
     134            Logging.warn(msg);
    134135            throw new PluginDownloadException(msg, e);
    135136        } catch (IOException e) {
     
    150151            String message = tr("Failed to create plugin directory ''{0}''", pluginDir.toString());
    151152            lastException = new PluginDownloadException(message);
    152             Main.error(message);
     153            Logging.error(message);
    153154            failed.addAll(toUpdate);
    154155            return;
     
    159160                return;
    160161            String message = tr("Downloading Plugin {0}...", d.name);
    161             Main.info(message);
     162            Logging.info(message);
    162163            progressMonitor.subTask(message);
    163164            progressMonitor.worked(1);
     
    167168            } catch (PluginDownloadException e) {
    168169                lastException = e;
    169                 Main.error(e);
     170                Logging.error(e);
    170171                failed.add(d);
    171172                continue;
Note: See TracChangeset for help on using the changeset viewer.