From d03923992c798d44aeb5735e8b8b02459f8ea041 Mon Sep 17 00:00:00 2001
From: viktorstrate <viktorstrate@gmail.com>
Date: Mon, 26 Apr 2021 10:26:54 +0200
Subject: [PATCH] clean up api log prints

---
 api/graphql/notification/Notification.go |   2 --
 api/scanner/exif/exif.go                 |   2 --
 api/scanner/photoview_test.db            | Bin 163840 -> 0 bytes
 api/scanner/scanner_album.go             |   2 --
 4 files changed, 6 deletions(-)
 delete mode 100644 api/scanner/photoview_test.db

diff --git a/api/graphql/notification/Notification.go b/api/graphql/notification/Notification.go
index 5ccd774..457b452 100644
--- a/api/graphql/notification/Notification.go
+++ b/api/graphql/notification/Notification.go
@@ -73,8 +73,6 @@ func BroadcastNotification(notification *models.Notification) {
 		return
 	}
 
-	log.Printf("Broadcasting notification: %s\n", notification.Header)
-
 	notificationLock.Lock()
 	defer notificationLock.Unlock()
 
diff --git a/api/scanner/exif/exif.go b/api/scanner/exif/exif.go
index 0f40a50..8c14fcf 100644
--- a/api/scanner/exif/exif.go
+++ b/api/scanner/exif/exif.go
@@ -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 {
diff --git a/api/scanner/photoview_test.db b/api/scanner/photoview_test.db
deleted file mode 100644
index b97d513c38e79137ca13419295f5df0bd1ed5cd1..0000000000000000000000000000000000000000
GIT binary patch
diff --git a/api/scanner/scanner_album.go b/api/scanner/scanner_album.go
index 9e89b3a..fdfb450 100644
--- a/api/scanner/scanner_album.go
+++ b/api/scanner/scanner_album.go
@@ -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
 		})
 
