Skip to content

Update hubconf.py to reset logging level to INFO#8680

Merged
glenn-jocher merged 1 commit intomasterfrom
update/hub_logging
Jul 22, 2022
Merged

Update hubconf.py to reset logging level to INFO#8680
glenn-jocher merged 1 commit intomasterfrom
update/hub_logging

Conversation

@glenn-jocher
Copy link
Copy Markdown
Member

@glenn-jocher glenn-jocher commented Jul 22, 2022

🛠️ PR Summary

Made with ❤️ by Ultralytics Actions

🌟 Summary

Enhanced logging behavior for model creation in Ultralytics' YOLOv5.

📊 Key Changes

  • Removed an unused variable that stored the LOGGER level.
  • Adjusted LOGGER level setting to ensure it is reset to INFO after model creation if verbose is False.

🎯 Purpose & Impact

  • Improves the readability and maintenance of the code by removing unnecessary lines.
  • Ensures that users who want less verbose output (verbose=False) won't receive detailed logs after creating a model, reducing potential clutter in their logs.
  • The change mainly impacts developers and users who want to control the verbosity of logging for better debugging and log management. 🤫🧹

@glenn-jocher glenn-jocher merged commit b92430a into master Jul 22, 2022
@glenn-jocher glenn-jocher deleted the update/hub_logging branch July 22, 2022 17:01
ctjanuhowski pushed a commit to ctjanuhowski/yolov5 that referenced this pull request Sep 8, 2022
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.

1 participant