Replace some usages of fmt.Printf with log.Printf
All checks were successful
Build / build (push) Successful in 1m44s
All checks were successful
Build / build (push) Successful in 1m44s
This commit is contained in:
parent
73508021f5
commit
0fdc3f8de2
@ -84,7 +84,7 @@ func DownloadAllVideos(db *sql.DB) error {
|
|||||||
for _, file := range files {
|
for _, file := range files {
|
||||||
srcPath := filepath.Join(tempDir, file.Name())
|
srcPath := filepath.Join(tempDir, file.Name())
|
||||||
destPath := filepath.Join(destinationDir, 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)
|
err = os.Rename(srcPath, destPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("error moving file: %w", err)
|
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)
|
return fmt.Errorf("error commiting transaction: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Printf("Finished downloading file")
|
log.Printf("Finished downloading file")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user