From ad69cd2580250486095be751feeea4584aa3bd7e Mon Sep 17 00:00:00 2001 From: lif <1835304752@qq.com> Date: Sat, 21 Mar 2026 11:10:44 +0800 Subject: [PATCH] fix(general): do not included concatenated entries in log (#5231) Truncate concatenation debug log to avoid 1M+ char output Log entry count and total length instead of dumping the entire concatenatedEntries slice, which could produce 1M+ character JSON in debug logs. - Fixes #3093 Signed-off-by: majiayu000 <1835304752@qq.com> --- repo/object/object_manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repo/object/object_manager.go b/repo/object/object_manager.go index d04b4acb3..4f4ec2121 100644 --- a/repo/object/object_manager.go +++ b/repo/object/object_manager.go @@ -129,7 +129,7 @@ func (om *Manager) Concatenate(ctx context.Context, objectIDs []ID, metadataComp } } - log(ctx).Debugf("concatenated: %v total: %v", concatenatedEntries, totalLength) + log(ctx).Debugf("concatenated %d entries, total object length: %d", len(concatenatedEntries), totalLength) w := om.NewWriter(ctx, WriterOptions{ Prefix: indirectContentPrefix,