mirror of
https://git.vectorsigma.ru/public/photoview.git
synced 2026-08-03 19:39:19 +00:00
clean up api log prints
This commit is contained in:
@@ -73,8 +73,6 @@ func BroadcastNotification(notification *models.Notification) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Printf("Broadcasting notification: %s\n", notification.Header)
|
|
||||||
|
|
||||||
notificationLock.Lock()
|
notificationLock.Lock()
|
||||||
defer notificationLock.Unlock()
|
defer notificationLock.Unlock()
|
||||||
|
|
||||||
|
|||||||
@@ -33,8 +33,6 @@ func InitializeEXIFParser() {
|
|||||||
// SaveEXIF scans the media file for exif metadata and saves it in the database if found
|
// SaveEXIF scans the media file for exif metadata and saves it in the database if found
|
||||||
func SaveEXIF(tx *gorm.DB, media *models.Media) (*models.MediaEXIF, error) {
|
func SaveEXIF(tx *gorm.DB, media *models.Media) (*models.MediaEXIF, error) {
|
||||||
|
|
||||||
log.Printf("Scanning for EXIF: %s", media.Path)
|
|
||||||
|
|
||||||
{
|
{
|
||||||
// Check if EXIF data already exists
|
// Check if EXIF data already exists
|
||||||
if media.ExifID != nil {
|
if media.ExifID != nil {
|
||||||
|
|||||||
Binary file not shown.
@@ -78,7 +78,6 @@ func scanAlbum(album *models.Album, cache *AlbumScannerCache, db *gorm.DB) {
|
|||||||
processing_was_needed := false
|
processing_was_needed := false
|
||||||
|
|
||||||
transactionError := db.Transaction(func(tx *gorm.DB) error {
|
transactionError := db.Transaction(func(tx *gorm.DB) error {
|
||||||
log.Printf("Process media transaction enter (%s)", media.Path)
|
|
||||||
processing_was_needed, err = ProcessMedia(tx, media)
|
processing_was_needed, err = ProcessMedia(tx, media)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.Wrapf(err, "failed to process photo (%s)", media.Path)
|
return errors.Wrapf(err, "failed to process photo (%s)", media.Path)
|
||||||
@@ -96,7 +95,6 @@ func scanAlbum(album *models.Album, cache *AlbumScannerCache, db *gorm.DB) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Printf("Process media transaction exit (%s)", media.Path)
|
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user