Skip to content

Commit

Permalink
Update .changeset/smooth-ties-look.md
Browse files Browse the repository at this point in the history
Co-authored-by: Ryan Ling <[email protected]>
  • Loading branch information
zbrydon and 72636c authored Jul 24, 2024
1 parent cdbae61 commit 5cae60c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .changeset/smooth-ties-look.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@
'@seek/logger': major
---

Adds trimming to log fields with dedicated serializers
Apply trimming to serializers

Previously, [built-in serializers](https://github.com/seek-oss/logger/tree/54f16e17a9bb94261b9d2e4b77f04f55d5a3ab4c?tab=readme-ov-file#standardised-fields) and custom ones supplied via the [`serializers` option](https://github.com/pinojs/pino/blob/8aafa88139890b97aca0d32601cb5ffdd9bda1eb/docs/api.md#serializers-object) were not subject to [trimming](https://github.com/seek-oss/logger/tree/54f16e17a9bb94261b9d2e4b77f04f55d5a3ab4c?tab=readme-ov-file#trimming). This caused some emitted error logs to be extremely large.

Now, trimming is applied across all serializers by default. If you rely on deeply nested `err` properties to troubleshoot your application, tune the `maxObjectDepth` configured on your logger.

0 comments on commit 5cae60c

Please sign in to comment.