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>
This commit is contained in:
lif authored and GitHub committed 2026-03-20 20:10:44 -07:00
1 parent df247ecf92
commit ad69cd2580
1 file changed
+1 -1
+1 -1
View File
@@ -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,