You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "jiderox (via GitHub)" <gi...@apache.org> on 2025/11/18 03:31:56 UTC
[D] 容器启动后日志很快就把磁盘占用满了 [superset]
GitHub user jiderox created a discussion: 容器启动后日志很快就把磁盘占用满了
e\n","stream":"stderr","time":"2025-11-18T03:29:52.951970857Z"}
{"log":"2025-11-18 03:29:52,951:DEBUG:watchdog.observers.inotify_buffer:in-event \u003cInotifyEvent: src_path=b'/app/superset-frontend/packages/superset-ui-core/src/theme/utils', wd=35457, mask=IN_CLOSE_NOWRITE|IN_ISDIR, cookie=0, name='utils'\u003e\n","stream":"stderr","time":"2025-11-18T03:29:52.952060157Z"}
{"log":"2025-11-18 03:29:52,952:DEBUG:watchdog.observers.inotify_buffer:in-event \u003cInotifyEvent: src_path=b'/app/superset-frontend/src/explore/components/controls/TimeSeriesColumnControl', wd=7559, mask=IN_ISDIR|IN_OPEN, cookie=0, name='TimeSeriesColumnControl'\u003e\n","stream":"stderr","time":"2025-11-18T03:29:52.952113756Z"}
{"log":"2025-11-18 03:29:52,952:DEBUG:watchdog.observers.inotify_buffer:in-event \u003cInotifyEvent: src_path=b'/app/superset-frontend/src/database', wd=7402, mask=IN_CLOSE_NOWRITE|IN_ISDIR, cookie=0, name=''\u003e\n","stream":"stderr","time":"2025-11-18T03:29:52.952208755Z"}
{"log":"2025-11-18 03:29:52,952:DEBUG:watchdog.observers.inotify_buffer:in-event \u003cInotifyEvent: src_path=b'/app/superset-frontend/packages/superset-ui-core/src/theme/utils', wd=35582, mask=IN_CLOSE_NOWRITE|IN_ISDIR, cookie=0, name=''\u003e\n","stream":"stderr","time":"2025-11-18T03:29:52.952290055Z"}
{"log":"2025-11-18 03:29:52,952:DEBUG:watchdog.observers.inotify_buffer:in-event \u003cInotifyEvent: src_path=b'/app/superset-frontend/src/explore/components/controls/TimeSeriesColumnControl', wd=7587, mask=IN_ISDIR|IN_OPEN, cookie=0, name=''\u003e\n","stream":"stderr","time":"2025-11-18T03:29:52.952301655Z"}
{"log":"2025-11-18 03:29:52,952:DEBUG:watchdog.observers.inotify_buffer:in-event \u003cInotifyEvent: src_path=b'/app/superset-frontend/src/explore/components/controls/TimeSeriesColumnControl', wd=7559, mask=IN_CLOSE_NOWRITE|IN_ISDIR, cookie=0, name='TimeSeriesColumnControl'\u003e\n","stream":"stderr","time":"2025-11-18T03:29:52.952444153Z"}
{"log":"2025-11-18 03:29:52,952:DEBUG:watchdog.observers.inotify_buffer:in-event \u003cInotifyEvent: src_path=b'/app/superset-frontend/src/explore/components/controls/TimeSeriesColumnControl', wd=7587, mask=IN_CLOSE_NOWRITE|IN_ISDIR, cookie=0, name=''\u003e\n","stream":"stderr","time":"2025-11-18T03:29:52.952475453Z"}
{"log":"2025-11-18 03:29:52,952:DEBUG:watchdog.observers.inotify_buffer:in-event \u003cInotifyEvent: src_path=b'/app/superset-frontend/src/core/sqlLab', wd=7397, mask=IN_ISDIR|IN_OPEN, cookie=0, name='sqlLab'\u003e\n","stream":"stderr","time":"2025-11-18T03:29:52.952564352Z"}
{"log":"2025-11-18 03:29:52,952:DEBUG:watchdog.observers.inotify_buffer:in-event \u003cInotifyEvent: src_path=b'/app/superset-frontend/src/core/sqlLab', wd=7423, mask=IN_ISDIR|IN_OPEN, cookie=0, name=''\u003e\n","stream":"stderr","time":"2025-11-18T03:29:52.952639852Z"}
{"log":"2025-11-18 03:29:52,952:DEBUG:watchdog.observers.inotify_buffer:in-event \u003cInotifyEvent: src_path=b'/app/superset-frontend/src/core/sqlLab', wd=7397, mask=IN_CLOSE_NOWRITE|IN_ISDIR, cookie=0, name='sqlLab'\u003e\n","stream":"stderr","time":"2025-11-18T03:29:52.952722451Z"}
{"log":"2025-11-18 03:29:52,952:DEBUG:watchdog.observers.inotify_buffer:in-event \u003cInotifyEvent: src_path=b'/app/superset-frontend/src/core/sqlLab', wd=7423, mask=IN_CLOSE_NOWRITE|IN_ISDIR, cookie=0, name=''\u003e\n","stream":"stderr","time":"2025-11-18T03:29:52.952740951Z"}
^这些日志访问如何配置的,SUPERSET_LOG_LEVEL = "ERROR" 我在superset_config.py中已经配置了这个,还是有那么多的日志
GitHub link: https://github.com/apache/superset/discussions/36152
----
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
Re: [D] 容器启动后日志很快就把磁盘占用满了 [superset]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
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
Re: [D] 容器启动后日志很快就把磁盘占用满了 [superset]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
GitHub user dosubot[bot] added a comment to 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).*
---
<sup>How did I do? [Good](https://app.dosu.dev/response-feedback/548429b6-f2b8-4039-b54b-d24a568ceb7b?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/548429b6-f2b8-4039-b54b-d24a568ceb7b?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/548429b6-f2b8-4039-b54b-d24a568ceb7b?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/548429b6-f2b8-4039-b54b-d24a568ceb7b?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/548429b6-f2b8-4039-b54b-d24a568ceb7b?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/548429b6-f2b8-4039-b54b-d24a568ceb7b?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/548429b6-f2b8-4039-b54b-d24a568ceb7b?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&
nbsp;[](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/36152)
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
Re: [D] 容器启动后日志很快就把磁盘占用满了 [superset]
Posted by "jiderox (via GitHub) via notifications" <no...@superset.apache.org>.
GitHub user jiderox closed a discussion: 容器启动后日志很快就把磁盘占用满了
e\n","stream":"stderr","time":"2025-11-18T03:29:52.951970857Z"}
{"log":"2025-11-18 03:29:52,951:DEBUG:watchdog.observers.inotify_buffer:in-event \u003cInotifyEvent: src_path=b'/app/superset-frontend/packages/superset-ui-core/src/theme/utils', wd=35457, mask=IN_CLOSE_NOWRITE|IN_ISDIR, cookie=0, name='utils'\u003e\n","stream":"stderr","time":"2025-11-18T03:29:52.952060157Z"}
{"log":"2025-11-18 03:29:52,952:DEBUG:watchdog.observers.inotify_buffer:in-event \u003cInotifyEvent: src_path=b'/app/superset-frontend/src/explore/components/controls/TimeSeriesColumnControl', wd=7559, mask=IN_ISDIR|IN_OPEN, cookie=0, name='TimeSeriesColumnControl'\u003e\n","stream":"stderr","time":"2025-11-18T03:29:52.952113756Z"}
{"log":"2025-11-18 03:29:52,952:DEBUG:watchdog.observers.inotify_buffer:in-event \u003cInotifyEvent: src_path=b'/app/superset-frontend/src/database', wd=7402, mask=IN_CLOSE_NOWRITE|IN_ISDIR, cookie=0, name=''\u003e\n","stream":"stderr","time":"2025-11-18T03:29:52.952208755Z"}
{"log":"2025-11-18 03:29:52,952:DEBUG:watchdog.observers.inotify_buffer:in-event \u003cInotifyEvent: src_path=b'/app/superset-frontend/packages/superset-ui-core/src/theme/utils', wd=35582, mask=IN_CLOSE_NOWRITE|IN_ISDIR, cookie=0, name=''\u003e\n","stream":"stderr","time":"2025-11-18T03:29:52.952290055Z"}
{"log":"2025-11-18 03:29:52,952:DEBUG:watchdog.observers.inotify_buffer:in-event \u003cInotifyEvent: src_path=b'/app/superset-frontend/src/explore/components/controls/TimeSeriesColumnControl', wd=7587, mask=IN_ISDIR|IN_OPEN, cookie=0, name=''\u003e\n","stream":"stderr","time":"2025-11-18T03:29:52.952301655Z"}
{"log":"2025-11-18 03:29:52,952:DEBUG:watchdog.observers.inotify_buffer:in-event \u003cInotifyEvent: src_path=b'/app/superset-frontend/src/explore/components/controls/TimeSeriesColumnControl', wd=7559, mask=IN_CLOSE_NOWRITE|IN_ISDIR, cookie=0, name='TimeSeriesColumnControl'\u003e\n","stream":"stderr","time":"2025-11-18T03:29:52.952444153Z"}
{"log":"2025-11-18 03:29:52,952:DEBUG:watchdog.observers.inotify_buffer:in-event \u003cInotifyEvent: src_path=b'/app/superset-frontend/src/explore/components/controls/TimeSeriesColumnControl', wd=7587, mask=IN_CLOSE_NOWRITE|IN_ISDIR, cookie=0, name=''\u003e\n","stream":"stderr","time":"2025-11-18T03:29:52.952475453Z"}
{"log":"2025-11-18 03:29:52,952:DEBUG:watchdog.observers.inotify_buffer:in-event \u003cInotifyEvent: src_path=b'/app/superset-frontend/src/core/sqlLab', wd=7397, mask=IN_ISDIR|IN_OPEN, cookie=0, name='sqlLab'\u003e\n","stream":"stderr","time":"2025-11-18T03:29:52.952564352Z"}
{"log":"2025-11-18 03:29:52,952:DEBUG:watchdog.observers.inotify_buffer:in-event \u003cInotifyEvent: src_path=b'/app/superset-frontend/src/core/sqlLab', wd=7423, mask=IN_ISDIR|IN_OPEN, cookie=0, name=''\u003e\n","stream":"stderr","time":"2025-11-18T03:29:52.952639852Z"}
{"log":"2025-11-18 03:29:52,952:DEBUG:watchdog.observers.inotify_buffer:in-event \u003cInotifyEvent: src_path=b'/app/superset-frontend/src/core/sqlLab', wd=7397, mask=IN_CLOSE_NOWRITE|IN_ISDIR, cookie=0, name='sqlLab'\u003e\n","stream":"stderr","time":"2025-11-18T03:29:52.952722451Z"}
{"log":"2025-11-18 03:29:52,952:DEBUG:watchdog.observers.inotify_buffer:in-event \u003cInotifyEvent: src_path=b'/app/superset-frontend/src/core/sqlLab', wd=7423, mask=IN_CLOSE_NOWRITE|IN_ISDIR, cookie=0, name=''\u003e\n","stream":"stderr","time":"2025-11-18T03:29:52.952740951Z"}
^这些日志访问如何配置的,SUPERSET_LOG_LEVEL = "ERROR" 我在superset_config.py中已经配置了这个,还是有那么多的日志
GitHub link: https://github.com/apache/superset/discussions/36152
----
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