-
-
Notifications
You must be signed in to change notification settings - Fork 50
Add configurable logging levels via LOG_LEVEL environment variable #666
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
base: main
Are you sure you want to change the base?
Conversation
- Add LOG_LEVEL environment variable support (DEBUG, INFO, WARNING, ERROR, CRITICAL) - Change default logging level from DEBUG to INFO to reduce noise - Configure root logger to ensure all loggers respect LOG_LEVEL setting - Update Docker configuration to support LOG_LEVEL - Update documentation to reflect new optional environment variable and available values
|
What an unfortunate PR number 😅 It's safe I tested it! Also I sound grumpy in the linked issue, I'm not! Thanks for all your efforts! Hope this helps/thanks for looking at it. |
|
This is great work. i'll test it out and try to implement. |
- Change verbose INFO messages to DEBUG for technical internals - Maintain user-friendly INFO messages for key actions and results - Update logger configuration for consistent formatting across modules - Apply uniform logging patterns to all app modules (sonarr, radarr, lidarr, readarr, whisparr) - Remove timezone labels from individual log lines for cleaner output This significantly reduces log noise while keeping important user-facing information visible. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
|
I've expanded this PR a bit to recategorize a bunch of internals from info to debug level also, along with removing the long-form timezone from the datestamp for file size and clarity. I also cleaned up a couple loggers that were using the default logging format instead of the custom Huntarr scheme. |
|
@Admin9705 bump/reminder if you have a min |
|
Still waiting to be implemented! |
|
Also really want this feature to be merged, huntarr is the source of about 90% of my log ingestion, with about 45 services running... Would really like to be able to disable debug logs! |
|
exactly the same here for me, it's all of the chatter in an otherwise clean log stream! |
|
Chiming in as well... would be good to see this get merged |
Summary
Adds configurable logging levels to reduce log noise in container deployments.
Issue: #568
Changes
Testing
Python Syntax & Import Tests
settings_manager.py,logger.py) compile without syntax errorsget_log_level(),configure_root_logger()) are properly defined and callableLOG_LEVEL=DEBUG→ returns 10 (DEBUG level)Docker Integration Tests
ENV LOG_LEVEL=INFOproperly set as default in DockerfileLOG_LEVEL=${LOG_LEVEL:-INFO}works correctly in docker-compose.ymlLOG_LEVEL=INFOin container-e LOG_LEVEL=WARNINGproperly overrides to WARNINGEnvironment Variable Validation
Breaking Changes
None - fully backward compatible.