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/tools/ExifReader.java

    r11745 r12620  
    4646            return readTime(metadata);
    4747        } catch (JpegProcessingException | IOException e) {
    48             Main.error(e);
     48            Logging.error(e);
    4949        }
    5050        return null;
     
    112112                        date.setTime(date.getTime() + (long) (TimeUnit.SECONDS.toMillis(1) * Double.parseDouble("0." + subSeconds)));
    113113                    } catch (NumberFormatException e) {
    114                         Main.warn("Failed parsing sub seconds from [{0}]", subSeconds);
    115                         Main.warn(e);
     114                        Logging.warn("Failed parsing sub seconds from [{0}]", subSeconds);
     115                        Logging.warn(e);
    116116                    }
    117117                }
     
    119119            }
    120120        } catch (UncheckedParseException e) {
    121             Main.error(e);
     121            Logging.error(e);
    122122        }
    123123        return null;
     
    146146            return dir == null ? null : dir.getInteger(ExifIFD0Directory.TAG_ORIENTATION);
    147147        } catch (JpegProcessingException | IOException e) {
    148             Main.error(e);
     148            Logging.error(e);
    149149        }
    150150        return null;
     
    163163            return readLatLon(dirGps);
    164164        } catch (JpegProcessingException | IOException | MetadataException e) {
    165             Main.error(e);
     165            Logging.error(e);
    166166        }
    167167        return null;
     
    197197            return readDirection(dirGps);
    198198        } catch (JpegProcessingException | IOException e) {
    199             Main.error(e);
     199            Logging.error(e);
    200200        }
    201201        return null;
     
    255255            return readSpeed(dirGps);
    256256        } catch (JpegProcessingException | IOException e) {
    257             Main.error(e);
     257            Logging.error(e);
    258258        }
    259259        return null;
     
    299299            return readElevation(dirGps);
    300300        } catch (JpegProcessingException | IOException e) {
    301             Main.error(e);
     301            Logging.error(e);
    302302        }
    303303        return null;
Note: See TracChangeset for help on using the changeset viewer.