Skip to content

Commit 6252ee2

Browse files
committed
Replace print() with logging.info()
1 parent 466bf03 commit 6252ee2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

downloader.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import requests
22
from tqdm import tqdm
33
import os
4+
import logging
45

56
from downloadqueue import DownloadQueue
7+
logging.basicConfig(level=logging.INFO)
68

79

810
class Downloader:
@@ -75,7 +77,7 @@ def _download_episode_queue(self, db):
7577
fullpath = self._full_path(destination_filename)
7678

7779
if self.fs.path_exists(fullpath):
78-
print("target file exists! " + fullpath)
80+
logging.info("Target file already exists: %s", fullpath)
7981
else:
8082
try:
8183
self.download_impl(episode, destination_filename)

0 commit comments

Comments
 (0)