Skip to content

Tail the debug log file instead of getting full content - #1

Closed
knutsp wants to merge 3 commits into
WordPress:trunkfrom
knutsp:trunk
Closed

knutsp wants to merge 3 commits into
WordPress:trunkfrom
knutsp:trunk

Conversation

@knutsp

@knutsp knutsp commented Jul 31, 2024

Copy link
Copy Markdown

A very large file may exhaust the available memory

knutsp added 3 commits July 31, 2024 12:21
Switches from reading the complete debug log file to just tail it
The textdomain is wrong and the label string "Tools" cannot be translated
@Clorith

Clorith commented Apr 18, 2025

Copy link
Copy Markdown
Member

I agree that we could do more to prevent memory exhaustion here, but I think we can be a bit smarter about how we approach it, as the loops and variables here will also add some overhead.

WordPress/health-check#475 was just merged, and attacks this in a much simpler way, that probably makes sense to replicate here as well.

@Clorith Clorith closed this in 88ce7b1 Aug 23, 2026
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.

2 participants