Add configurable logging levels via LOG_LEVEL environment variable#666
Add configurable logging levels via LOG_LEVEL environment variable#666tikibozo wants to merge 4 commits intoplexguide:mainfrom
Conversation
|
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. |
|
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 |
|
There's been no commits, other than via the bot since the last release over 4 months ago. @Admin9705, you've no activity since August either. I hope you're doing OK out there. |
|
@Admin9705 Disappointing to see all the recent changes with this PR still unmerged. Do you intend to approve this? If so I'll resolve the new conflicts the recent work created. |
|
@Admin9705 , please can you update us on this? With the current crazy situation for SSDs and memory I'd really like to make sure they aren't being written to unnecessarily 😆 |
ff18a16 to
2c4952e
Compare
- 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
- 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>
2c4952e to
9546a99
Compare
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.