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/layer/geoimage/ImageEntry.java

    r11746 r12620  
    88import java.util.Date;
    99
    10 import org.openstreetmap.josm.Main;
    1110import org.openstreetmap.josm.data.coor.CachedLatLon;
    1211import org.openstreetmap.josm.data.coor.LatLon;
    1312import org.openstreetmap.josm.tools.ExifReader;
    1413import org.openstreetmap.josm.tools.JosmRuntimeException;
     14import org.openstreetmap.josm.tools.Logging;
    1515
    1616import com.drew.imaging.jpeg.JpegMetadataReader;
     
    440440            metadata = JpegMetadataReader.readMetadata(file);
    441441        } catch (CompoundException | IOException ex) {
    442             Main.error(ex);
     442            Logging.error(ex);
    443443            setExifTime(null);
    444444            setExifCoor(null);
     
    452452            setExifTime(ExifReader.readTime(metadata));
    453453        } catch (JosmRuntimeException | IllegalArgumentException | IllegalStateException ex) {
    454             Main.warn(ex);
     454            Logging.warn(ex);
    455455            setExifTime(null);
    456456        }
     
    465465            }
    466466        } catch (MetadataException ex) {
    467             Main.debug(ex);
     467            Logging.debug(ex);
    468468        }
    469469
     
    489489            setPos(getExifCoor());
    490490        } catch (MetadataException | IndexOutOfBoundsException ex) { // (other exceptions, e.g. #5271)
    491             Main.error("Error reading EXIF from file: " + ex);
     491            Logging.error("Error reading EXIF from file: " + ex);
    492492            setExifCoor(null);
    493493            setPos(null);
     
    500500            }
    501501        } catch (IndexOutOfBoundsException ex) { // (other exceptions, e.g. #5271)
    502             Main.debug(ex);
     502            Logging.debug(ex);
    503503        }
    504504
Note: See TracChangeset for help on using the changeset viewer.