Skip to content

fix: key the Gravity Forms logs flag on its folder - #31

Merged
oxyc merged 1 commit into
mainfrom
fix/gf-logs-stable-id
Dec 1, 2026
Merged

oxyc merged 1 commit into
mainfrom
fix/gf-logs-stable-id

Conversation

@oxyc

@oxyc oxyc commented Dec 1, 2026

Copy link
Copy Markdown
Member

The gf-logs flag id hashed every log file's path, size and modification time. When logging is on, the active log grows with each submission and rotates, so the id changed daily and an accept of the flag stopped matching almost at once (seen on a site where logging is kept on deliberately: accepted in the evening, flagged again an hour later).

The id is now gf-logs:<folder>. The message still says how many files, how big and whether they're served.

  • A test checks the id stays the same as a log grows and a rotated file appears.
  • Existing accepts of gf-logs flags stop matching once (the id format changes); they need re-accepting with the new id.

🤖 Generated with Claude Code

The id hashed each log's path, size and modification time. A log in use grows on every submission and rotates, so the id changed daily and an accept never held. It now names the folder only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@oxyc
oxyc merged commit f2837d6 into main Dec 1, 2026
2 checks passed
@oxyc
oxyc deleted the fix/gf-logs-stable-id branch December 1, 2026 23:29
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