Replace some usages of fmt.Printf with log.Printf
All checks were successful
Build / build (push) Successful in 1m44s

This commit is contained in:
Sebastiaan de Schaetzen 2025-02-10 13:04:01 +01:00
parent 73508021f5
commit 0fdc3f8de2

View File

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