Skip to content

Fix network log cleanup#10557

Open
MostCromulent wants to merge 1 commit intoCard-Forge:masterfrom
MostCromulent:claude/fix-log-deletion-limit-wP76d
Open

Fix network log cleanup#10557
MostCromulent wants to merge 1 commit intoCard-Forge:masterfrom
MostCromulent:claude/fix-log-deletion-limit-wP76d

Conversation

@MostCromulent
Copy link
Copy Markdown
Contributor

@MostCromulent MostCromulent commented Apr 28, 2026

Network log writer is intended to retain a history of the last 10 logs and delete any older entries to avoid file bloat.

However cleanupOldLogs() was only called by the test executor, not in normal network play. This allowed network logs to accumulate past the NET_MAX_LOG_FILES limit.

Fix by adding cleanupOldLogs() to the normal network play path.

cleanupOldLogs() was only invoked from setInstanceSuffix(), which is
called exclusively by the parallel test executors. Normal network games
go through activateNetworkLogging(), so flat network-debug-*.log files
accumulated past the NET_MAX_LOG_FILES limit without ever being pruned.

Run cleanup once when normal-mode logging is first activated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants