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
2026-03-21 11:10:44 +08:00
committed by GitHub
parent df247ecf92
commit ad69cd2580

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,