Skip to content

#305 - Database logs: limit the strings of the context to 65536 characters - #306

Merged
njoubert-cleverage merged 2 commits into
mainfrom
305
Nov 6, 2026
Merged

njoubert-cleverage merged 2 commits into
mainfrom
305

Conversation

@njoubert-cleverage

Copy link
Copy Markdown
Member

Description

Fixes #305:

  • LogRecord::limit() truncates the strings of the context (any depth) beyond 65536 characters, followed by [...] (over 65536 characters, <total> total, truncated), cut on a character; the file logs are unchanged;
  • documentation of the logs.

Checked locally: highest dependencies (PHP 8.5.12), with pcov coverage: all tests OK, no risky; PHPStan, PHP-CS-Fixer and Rector OK.

Requirements

  • Documentation updates
    • Reference
    • Cookbooks
    • Changelog
  • Unit tests

Breaking changes

None.

🤖 Generated with Claude Code

…cters

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@njoubert-cleverage
njoubert-cleverage requested a review from a team as a code owner November 6, 2026 13:15
@njoubert-cleverage
njoubert-cleverage merged commit b09d8c3 into main Nov 6, 2026
23 checks passed
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.

Database logs: a large string in the context of a log record exceeds the maximum packet size (log lost, connection closed)

1 participant