mirror of
https://github.com/kopia/kopia.git
synced 2026-03-25 01:21:16 -04:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user