Skip to content

[PAR-735] Fix memory exhaustion in LoggerService when logging complex objects#16

Merged
mescalantea merged 1 commit into
masterfrom
bugfix/PAR-735-Memory-exhausted-error
Mar 18, 2026
Merged

[PAR-735] Fix memory exhaustion in LoggerService when logging complex objects#16
mescalantea merged 1 commit into
masterfrom
bugfix/PAR-735-Memory-exhausted-error

Conversation

@mescalantea
Copy link
Copy Markdown
Contributor

What is the goal?

Fix memory exhaustion in LoggerService when logging complex objects

References

  • Issue: PAR-735

How is it being implemented?

Replace unbounded print_r() on context values with type-aware formatting: Throwable objects are serialized as "Class: message in file:line", other objects use json_encode with depth limit, scalars/arrays keep print_r. This prevents OOM when exceptions with large object graphs are passed as log context (PAR-735).

How is it tested?

Automatic tests

How is it going to be deployed?

Standard deployment

Replace unbounded print_r() on context values with type-aware formatting:
Throwable objects are serialized as "Class: message in file:line",
other objects use json_encode with depth limit, scalars/arrays keep print_r.
This prevents OOM when exceptions with large object graphs are passed as
log context (PAR-735).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@mescalantea mescalantea requested a review from a team as a code owner March 18, 2026 10:47
@mescalantea mescalantea merged commit 4c6a7c9 into master Mar 18, 2026
4 checks passed
@mescalantea mescalantea deleted the bugfix/PAR-735-Memory-exhausted-error branch March 18, 2026 10:48
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