mirror of
https://github.com/AJaySi/ALwrity.git
synced 2026-04-25 00:45:54 +03:00
[PR #423] Refactor logging suppression with policy overrides and feature-gated video filter #729
Labels
No labels
AI Content Agents
AI Content Strategy
AI Content planning
AI Marketing Tools
AI SEO
AI personalization
AI writer
ALwrity Copi-lot
Alwrity web search
Anthropic
DeepSeek
Gemini AI
Integration
LLM
OnBoarding
OnBoarding
RAG knowledgebase Memory
bug
documentation
enhancement
good first issue
help wanted
invalid
openai
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ALwrity#729
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/AJaySi/ALwrity/pull/423
Author: @AJaySi
Created: 3/12/2026
Status: 🔄 Open
Base:
main← Head:codex/refactor-logging-suppression-logic📝 Commits (1)
c1d4b86Refactor backend logging suppression policies📊 Changes
1 file changed (+128 additions, -87 deletions)
View changed files
📝
backend/logging_config.py(+128 -87)📄 Description
Motivation
ALWRITY_LOG_LEVEL_OVERRIDES.ALWRITY_ENABLE_STORY_VIDEO_LOG_FILTER.Description
module=LEVELoverrides viaALWRITY_LOG_LEVEL_OVERRIDES.DEFAULT_NAMESPACE_LEVEL_POLICIESand aNOISY_LOGGERSlist and consolidated suppression into_build_logger_level_policies()and_apply_logger_level_policies()to apply levels programmatically._parse_log_level_overrides()where the last duplicate wins and invalid entries are ignored, and unified boolean env parsing in_is_enabled()which is used insetup_clean_logging()andget_uvicorn_log_level().ALWRITY_ENABLE_STORY_VIDEO_LOG_FILTERso it is only registered when explicitly enabled.Testing
python -m py_compile backend/logging_config.pyto verify the module compiles successfully (passed).Codex Task
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.