Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add logging statements to start_download_from_uri method #7769

Merged
merged 1 commit into from
Dec 11, 2023

Conversation

drew2a
Copy link
Contributor

@drew2a drew2a commented Dec 11, 2023

This PR adds logging for start_download_from_uri which helps investigate bugs like:

Changes:

  • Added logging statements to indicate the start of download from URI
  • Added logging statements to indicate the detection of different schemes (HTTP(s), Magnet, File)
  • Added logging statements to display name and infohash for Magnet scheme
  • Added logging statements to indicate if metainfo is found in cache or not
  • Added logging statement to indicate if file scheme is detected
  • Updated existing debug log statement with an info log statement in start_download method
  • Added logging statement to indicate that torrent def is None and trying to load it from torrent file
  • Added logging statement to indicate if download exists and metainfo is not requested
  • Created destination directory if it does not exist and added corresponding log statement

- Added logging statements to indicate the start of download from URI
- Added logging statements to indicate the detection of different schemes (HTTP(s), Magnet, File)
- Added logging statements to display name and infohash for Magnet scheme
- Added logging statements to indicate if metainfo is found in cache or not
- Added logging statement to indicate if file scheme is detected
- Updated existing debug log statement with an info log statement in start_download method
- Added logging statement to indicate that torrent def is None and trying to load it from torrent file
- Added logging statement to indicate if download exists and metainfo is not requested
- Created destination directory if it does not exist and added corresponding log statement
@drew2a drew2a marked this pull request as ready for review December 11, 2023 13:26
@drew2a drew2a requested review from a team and xoriole and removed request for a team December 11, 2023 13:26
@drew2a drew2a merged commit e071f89 into Tribler:main Dec 11, 2023
31 of 32 checks passed
@drew2a drew2a deleted the refactoring/download_logging branch December 11, 2023 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants