'quart.app' vs 'app' for log level configuration via dictConfig
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- python
调研方向
从链接的 Quart logging 文档开始,将文档中的 'quart.app' dictConfig 条目与 current_app.logger 使用的 logger 名称进行比较。重现 issue 中的 INFO-versus-WARN 行为,然后验证文档中的配置能够控制应用程序 logger,并且该行为已由回归测试覆盖。
由索引模型根据 Issue 内容生成。
描述
Per the quart documentation, logging configuration can be provided by configuring a logger called 'quart.app' via dictConfig. However, I've found that the log level pulled from current_app.logger uses the name 'app', rather than 'quart.app', and can therefore only be configured by setting 'app' up in dictConfig.
Example:
I would expect a configuration that looks like this:
to configure current_app.logger with a log level of INFO, per your documentation, but it actually sets that logger to WARN, since it's using 'app'
Environment:
- Python version: 3.10.13
- Quart version: 0.19.4
- 主要语言
- Python
- 星标
- 3.7k
- 派生
- 209
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
pallets/quart 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 92/100
-
`abort` typing doesn't accept Response as a valid parameter可能已有人在做 @touilleMan 于 1455 天前认领。 未关闭
难度 1/5 1 小时以内 新手友好度 68/100
-
process_response marks the session accessed, so every response gets Vary: Cookie可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 3/5 1-2 天 新手友好度 78/100
-
Installing asgi_app middleware as documented results in type errors可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 3/5 1-2 天 新手友好度 45/100
-
Allow max content length to be modified on a per-request basis可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 4/5 3-5 天 新手友好度 35/100
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
Status: Triaged Type: Enhancement
难度 1/5 1 小时以内 新手友好度 82/100
canonical/craft-store#448 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复
-
good first issue research size:s skill:numerics sub-issue
难度 2/5 1-3 小时 新手友好度 78/100
SKaiNET-developers/SKaiNET#1372 ·
维护者通常 1 天内回复
-
debt
难度 2/5 1-3 小时 新手友好度 68/100
microsoft/vscode-flake8#601 ·
维护者通常 1 天内回复