You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "dosubot[bot] (via GitHub)" <gi...@apache.org> on 2026/05/02 03:06:22 UTC
Re: [D] 容器启动后日志很快就把磁盘占用满了 [superset]
GitHub user dosubot[bot] edited a comment on the discussion: 容器启动后日志很快就把磁盘占用满了
<!-- Answer -->
SUPERSET_LOG_LEVEL 只控制 Superset 自己的日志级别,不能影响像 watchdog 这样的第三方库。watchdog 的 DEBUG 日志需要你在 superset_config.py 里用 Python logging 显式设置:
```python
import logging
logging.getLogger("watchdog").setLevel(logging.ERROR)
logging.getLogger("watchdog.observers.inotify_buffer").setLevel(logging.ERROR)
```
这样可以抑制 watchdog 的 DEBUG 日志,避免日志把磁盘占满。确认 superset_config.py(或 superset_config_docker.py)已被容器正确加载,否则这些设置不会生效。可以在配置文件顶部加一行 `raise Exception("config loaded")`,重启容器后如果日志里出现异常说明配置已加载。
参考:[Superset logging config源码](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/config.py#L940-L2008)
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=reply-with-mention&utm_term=apache%2Fsuperset).*
---
Docs are dead. Just use [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-tagline&utm_term=apache%2Fsuperset).
[](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-feedback&utm_term=apache%2Fsuperset&message_id=548429b6-f2b8-4039-b54b-d24a568ceb7b) [](https://github.dosu.com/apache/superset?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-ask-repo&utm_term=apache%2Fsuperset) [](https://app.dosu.dev/signup?referrer=openSource&source=github-footer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-share-team&utm_term=apache%2Fsuperset)
GitHub link: https://github.com/apache/superset/discussions/36152#discussioncomment-14996526
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org