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

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

Merged
merged 1 commit into from
Jul 22, 2022

Conversation

glenn-jocher
Copy link
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.

None yet

1 participant