mirror of
https://blitiri.com.ar/repos/chasquid
synced 2026-10-28 15:02:28 +00:00
5e827fe36f
Currently we trace everything we are given; sometimes in rare but valid cases that can be multi-MiB strings. That gets logged and stays in memory for tracing, which can blow up quite a lot and be a source of problems and unexpected excessive resource usage. To mitigate this and reduce the chances of issues, this patch truncates very long messages to 8k utf8 characters. That's long enough to be useful for debugging, without running the risk of causing problems on extremely long messages. We may adjust this issue in the future if this limit becomes a problem.