Backend: Adjust metadata log levels

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2020-07-20 23:29:14 +02:00
parent 4a8f04bb2c
commit 4cda0fd9a8

View file

@ -173,7 +173,7 @@ func (data *Data) Exif(fileName string, fileType fs.FileType) (err error) {
_, index, err := exif.Collect(exifIfdMapping, exifTagIndex, rawExif)
if err != nil {
log.Warnf("metadata: %s in %s (exif collect)", err.Error(), logName)
log.Debugf("metadata: %s in %s (exif collect)", err.Error(), logName)
} else {
if ifd, err := index.RootIfd.ChildWithIfdPath(exifcommon.IfdGpsInfoStandardIfdIdentity); err == nil {
if gi, err := ifd.GpsInfo(); err == nil {
@ -182,7 +182,7 @@ func (data *Data) Exif(fileName string, fileType fs.FileType) (err error) {
data.Altitude = gi.Altitude
} else {
log.Debugf("exif: %s in %s (gps info)", err, logName)
log.Warnf("metadata: failed parsing gps coordinates in %s (exif)", logName)
log.Infof("metadata: failed parsing gps coordinates in %s (exif)", logName)
}
}
}