1
Fork 0

clean up api log prints

This commit is contained in:
viktorstrate 2021-04-26 10:26:54 +02:00
parent dd658854c9
commit d03923992c
No known key found for this signature in database
GPG Key ID: 3F855605109C1E8A
4 changed files with 0 additions and 6 deletions

View File

@ -73,8 +73,6 @@ func BroadcastNotification(notification *models.Notification) {
return
}
log.Printf("Broadcasting notification: %s\n", notification.Header)
notificationLock.Lock()
defer notificationLock.Unlock()

View File

@ -33,8 +33,6 @@ func InitializeEXIFParser() {
// 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) {
log.Printf("Scanning for EXIF: %s", media.Path)
{
// Check if EXIF data already exists
if media.ExifID != nil {

Binary file not shown.

View File

@ -78,7 +78,6 @@ func scanAlbum(album *models.Album, cache *AlbumScannerCache, db *gorm.DB) {
processing_was_needed := false
transactionError := db.Transaction(func(tx *gorm.DB) error {
log.Printf("Process media transaction enter (%s)", media.Path)
processing_was_needed, err = ProcessMedia(tx, media)
if err != nil {
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
})