This is an automated email from the ASF dual-hosted git repository.

wusheng pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-banyandb.git


The following commit(s) were added to refs/heads/main by this push:
     new 0154f620 Refactor logging in localIndexCallback to use debug level for 
document insertion messages (#860)
0154f620 is described below

commit 0154f620472f5cf9412db45b28e35ee910c4d39d
Author: Gao Hongtao <[email protected]>
AuthorDate: Mon Nov 24 10:38:49 2025 +0800

    Refactor logging in localIndexCallback to use debug level for document 
insertion messages (#860)
---
 banyand/stream/write_index.go | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/banyand/stream/write_index.go b/banyand/stream/write_index.go
index b6fa708f..0d4e3200 100644
--- a/banyand/stream/write_index.go
+++ b/banyand/stream/write_index.go
@@ -191,11 +191,12 @@ func (l *localIndexCallback) Rev(_ context.Context, 
message bus.Message) (resp b
                return
        }
 
-       l.l.Info().
-               Str("group", group).
-               Uint32("shardID", shardID).
-               Int("documentCount", len(documents)).
-               Msg("successfully inserted documents to tsTable index")
+       if dl := l.l.Debug(); dl.Enabled() {
+               dl.Str("group", group).
+                       Uint32("shardID", shardID).
+                       Int("documentCount", len(documents)).
+                       Msg("successfully inserted documents to tsTable index")
+       }
 
        return
 }

Reply via email to