From 0fdc3f8de273f220fd5507e81ff0251ed8d04dc3 Mon Sep 17 00:00:00 2001 From: Sebastiaan de Schaetzen Date: Mon, 10 Feb 2025 13:04:01 +0100 Subject: [PATCH] Replace some usages of fmt.Printf with log.Printf --- downloader.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/downloader.go b/downloader.go index 8f80aa8..b92e332 100644 --- a/downloader.go +++ b/downloader.go @@ -84,7 +84,7 @@ func DownloadAllVideos(db *sql.DB) error { for _, file := range files { srcPath := filepath.Join(tempDir, file.Name()) destPath := filepath.Join(destinationDir, file.Name()) - fmt.Printf("Moving %s to %s", srcPath, destPath) + log.Printf("Moving %s to %s", srcPath, destPath) err = os.Rename(srcPath, destPath) if err != nil { return fmt.Errorf("error moving file: %w", err) @@ -152,6 +152,6 @@ func DownloadAllVideos(db *sql.DB) error { return fmt.Errorf("error commiting transaction: %w", err) } - fmt.Printf("Finished downloading file") + log.Printf("Finished downloading file") } }