Skip to content

[0149] 移除过大的调试日志输出#3419

Merged
da-liii merged 1 commit into
mainfrom
da/0149/cout_cleaning
May 20, 2026
Merged

[0149] 移除过大的调试日志输出#3419
da-liii merged 1 commit into
mainfrom
da/0149/cout_cleaning

Conversation

@da-liii

@da-liii da-liii commented May 20, 2026

Copy link
Copy Markdown
Contributor

关联任务

[0149] 启用 LIII_DEBUG 调试日志 (#3416) 的前置清理

改动内容

  • 新增 devel/0149.md 任务文档
  • 移除 src/Typeset/Bridge/typesetter.cpp 中输出内容过大的 LIII_DEBUG 调试日志:
    1. typesetter_rep::insert_paragraph 中对整棵树 tcout 输出
    2. typesetter_rep::insert_paragraph 中对 temp_l 数组的循环逐项输出
    3. notify_assign 中对 pucout 输出

Why

#3416 中启用了 LIII_DEBUG,但部分日志输出完整树结构或页面项数组,内容量极大,导致 debug 模式下终端被刷屏、日志文件膨胀,并影响排版性能。

如何测试

xmake b stem

在 debug 编译模式下启动 Mogan,确认 LIII_DEBUG 日志不再输出过大内容。

@da-liii da-liii merged commit 7095da6 into main May 20, 2026
3 of 4 checks passed
@da-liii da-liii deleted the da/0149/cout_cleaning branch May 20, 2026 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant