Skip to content

Do not configure logging#483

Open
shaperilio wants to merge 2 commits intorunpod:mainfrom
shaperilio:fix/no-logging
Open

Do not configure logging#483
shaperilio wants to merge 2 commits intorunpod:mainfrom
shaperilio:fix/no-logging

Conversation

@shaperilio
Copy link
Copy Markdown

Fixes #482

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes rp_upload.py’s module-level logging configuration so importing runpod no longer implicitly enables INFO-level logging output, addressing issue #482.

Changes:

  • Removed logging.basicConfig(...) from runpod/serverless/utils/rp_upload.py to avoid configuring global logging on import.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@@ -21,7 +21,6 @@

logger = logging.getLogger("runpod upload utility")
FMT = "%(filename)-20s:%(lineno)-4d %(asctime)s %(message)s"
Copy link

Copilot AI Apr 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FMT is now unused after removing logging.basicConfig(...). Consider removing it (or renaming to _FMT if you intend to keep it for future formatting) to avoid dead/unused module-level constants.

Suggested change
FMT = "%(filename)-20s:%(lineno)-4d %(asctime)s %(message)s"

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rp_upload.py should not configure logging

3 participants