You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by ha...@apache.org on 2025/11/24 01:54:34 UTC

(skywalking-banyandb) branch chore/log-level created (now c914a06f)

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

hanahmily pushed a change to branch chore/log-level
in repository https://gitbox.apache.org/repos/asf/skywalking-banyandb.git


      at c914a06f Refactor logging in localIndexCallback to use debug level for document insertion messages

This branch includes the following new commits:

     new c914a06f Refactor logging in localIndexCallback to use debug level for document insertion messages

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(skywalking-banyandb) 01/01: Refactor logging in localIndexCallback to use debug level for document insertion messages

Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

hanahmily pushed a commit to branch chore/log-level
in repository https://gitbox.apache.org/repos/asf/skywalking-banyandb.git

commit c914a06f15b42c4eea644f6f7be2af90f0b7bee8
Author: Gao Hongtao <ha...@gmail.com>
AuthorDate: Mon Nov 24 01:54:15 2025 +0000

    Refactor logging in localIndexCallback to use debug level for document insertion messages
---
 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
 }