1Panel-dev / 1Panel-dev/1Panel

[Bug] Log Audit - Clearing website logs disables real-time tracking

Open
#12,751 1 comment 0 reactions 2 assignees View on GitHub

@lan-yonghui is already working on this.

Since Jun 16, 2026.

type: optimization
Dominant language
Go
Stars
37k
Forks
3.4k
Avg merge
9h 16m
Merged PRs (30d)
105

Description

Contact Information

No response

1Panel Version

v2.1.12

Problem Description

日志审计 → 网站日志 中,开启「日志追踪」后执行「清空日志」,追踪功能将会失效。切换到其他站点再切换回来,虽然能刷新一次当前日志,但追踪仍不会恢复,只有手动刷新整个页面追踪才能重新正常工作。

Steps to Reproduce
  1. 进入「日志审计」→「网站日志」
  2. 选择任意站点,开启「日志追踪」
  3. 在追踪开启状态下,点击「清空日志」
  4. 观察追踪状态 —— 追踪失效,切换站点也无法恢复,需手动刷新页面
The expected correct result

执行「清空日志」后,日志追踪应保持开启状态,继续实时追踪后续日志输出,无需手动刷新页面。

Related log output

Additional Information

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.