From 400774555aa601216525504e8af2467f5d82394e Mon Sep 17 00:00:00 2001 From: RamiBerm Date: Tue, 13 Jul 2021 16:38:34 +0300 Subject: [PATCH] Update size_enforcer.go --- api/pkg/database/size_enforcer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/pkg/database/size_enforcer.go b/api/pkg/database/size_enforcer.go index fb2acef96..cfaa293da 100644 --- a/api/pkg/database/size_enforcer.go +++ b/api/pkg/database/size_enforcer.go @@ -112,8 +112,8 @@ func pruneOldEntries(currentFileSize int64) { GetEntriesTable().Where(entryIdsToRemove).Delete(models.MizuEntry{}) // VACUUM causes sqlite to shrink the db file after rows have been deleted, the db file will not shrink without this DB.Exec("VACUUM") - fmt.Printf("Removed %d rows and cleared %s bytes", len(entryIdsToRemove), shared.BytesToHumanReadable(bytesToBeRemoved)) + fmt.Printf("Removed %d rows and cleared %s bytes\n", len(entryIdsToRemove), shared.BytesToHumanReadable(bytesToBeRemoved)) } else { - fmt.Printf("Found no rows to remove when pruning") + fmt.Println("Found no rows to remove when pruning") } }