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") } }