From e95e4840c7a7f6313adf175fbe91ff772e4114e0 Mon Sep 17 00:00:00 2001 From: LiuBo Date: Mon, 23 Dec 2024 20:47:25 +0800 Subject: [PATCH] [improvement] logservice: add truncate log --- pkg/logservice/truncation.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/logservice/truncation.go b/pkg/logservice/truncation.go index 4fdad981865db..acb764435f648 100644 --- a/pkg/logservice/truncation.go +++ b/pkg/logservice/truncation.go @@ -243,6 +243,11 @@ func (l *store) processShardTruncateLog(ctx context.Context, shardID uint64) err zap.Error(err)) return err } + l.runtime.Logger().Info("do truncate log", + zap.Uint64("shard ID", shardID), + zap.Uint64("replica ID", replicaID), + zap.Uint64("lsn", lsn), + ) return nil }