Ignore:
Timestamp:
2017-08-22T22:26:32+02:00 (9 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/io/UploadPrimitivesTask.java

    r11686 r12620  
    3838import org.openstreetmap.josm.io.OsmTransferException;
    3939import org.openstreetmap.josm.tools.ImageProvider;
     40import org.openstreetmap.josm.tools.Logging;
    4041
    4142/**
     
    200201            }
    201202            monitor.appendLogMessage(msg);
    202             Main.warn(msg);
     203            Logging.warn(msg);
    203204            processedPrimitives.addAll(writer.getProcessedPrimitives());
    204205            processedPrimitives.add(p);
     
    224225            SwingUtilities.invokeAndWait(r);
    225226        } catch (InterruptedException e) {
    226             Main.trace(e);
     227            Logging.trace(e);
    227228            lastException = e;
    228229            Thread.currentThread().interrupt();
    229230        } catch (InvocationTargetException e) {
    230             Main.trace(e);
     231            Logging.trace(e);
    231232            lastException = new OsmTransferException(e.getCause());
    232233        }
     
    249250                    break;
    250251                } catch (OsmTransferCanceledException e) {
    251                     Main.error(e);
     252                    Logging.error(e);
    252253                    uploadCanceled = true;
    253254                    break uploadloop;
     
    292293        } catch (OsmTransferException e) {
    293294            if (uploadCanceled) {
    294                 Main.info(tr("Ignoring caught exception because upload is canceled. Exception is: {0}", e.toString()));
     295                Logging.info(tr("Ignoring caught exception because upload is canceled. Exception is: {0}", e.toString()));
    295296            } else {
    296297                lastException = e;
Note: See TracChangeset for help on using the changeset viewer.