Skip to content

Commit 0174a3c

Browse files
Improve logging around moving temp file.
[skip ci]
1 parent d96d914 commit 0174a3c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/BookBounty.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -623,6 +623,7 @@ def download_from_libgen(self, req_item, link):
623623
percent_completion = (downloaded_size / total_size) * 100 if total_size > 0 else 0
624624
self.general_logger.info(f"Downloading: {os.path.basename(file_path)} - Progress: {percent_completion:.2f}%")
625625

626+
self.general_logger.info(f"Moving temp file: {f.name} to final location: {file_path}")
626627
shutil.move(f.name, file_path)
627628

628629
except Exception as e:

0 commit comments

Comments
 (0)