diff --git a/internal/entity/photo.go b/internal/entity/photo.go index 5be23ca14..98d2b52b4 100644 --- a/internal/entity/photo.go +++ b/internal/entity/photo.go @@ -136,7 +136,7 @@ func SavePhotoForm(model Photo, form form.Photo, geoApi string) error { } if err := model.UpdateTitle(model.ClassifyLabels()); err != nil { - log.Warn(err) + log.Info(err) } if err := model.IndexKeywords(); err != nil { @@ -184,7 +184,7 @@ func (m *Photo) Save() error { m.UpdateYearMonth() if err := m.UpdateTitle(labels); err != nil { - log.Warn(err) + log.Info(err) } if m.DetailsLoaded() { diff --git a/internal/entity/photo_optimize.go b/internal/entity/photo_optimize.go index c62613a36..ac27d221d 100644 --- a/internal/entity/photo_optimize.go +++ b/internal/entity/photo_optimize.go @@ -108,7 +108,7 @@ func (m *Photo) Optimize() (updated bool, err error) { m.UpdateYearMonth() if err := m.UpdateTitle(labels); err != nil { - log.Warn(err) + log.Info(err) } if m.DetailsLoaded() { diff --git a/internal/meta/exif.go b/internal/meta/exif.go index aff2a4572..eda7b17c7 100644 --- a/internal/meta/exif.go +++ b/internal/meta/exif.go @@ -36,7 +36,7 @@ func Exif(fileName string) (data Data, err error) { func (data *Data) Exif(fileName string) (err error) { defer func() { if e := recover(); e != nil { - err = fmt.Errorf("metadata: %s (exif panic)", e) + err = fmt.Errorf("metadata: %s in %s (exif panic)", e, txt.Quote(filepath.Base(fileName))) } }() @@ -61,7 +61,7 @@ func (data *Data) Exif(fileName string) (err error) { if err.Error() == "no exif header" { return fmt.Errorf("metadata: no exif header in %s", txt.Quote(filepath.Base(fileName))) } else { - log.Warnf("metadata: %s (parse jpeg)", err) + log.Warnf("metadata: %s in %s", err, txt.Quote(filepath.Base(fileName))) } } else { parsed = true @@ -81,7 +81,7 @@ func (data *Data) Exif(fileName string) (err error) { if err.Error() == "file does not have EXIF" { return fmt.Errorf("metadata: no exif header in %s", txt.Quote(filepath.Base(fileName))) } else { - log.Warnf("metadata: %s (parse png)", err) + log.Warnf("metadata: %s in %s", err, txt.Quote(filepath.Base(fileName))) } } else { parsed = true