From 05a35ca41fd561ba02ffa3dcec67bfaa57d9b083 Mon Sep 17 00:00:00 2001 From: okJiang <819421878@qq.com> Date: Fri, 20 Dec 2024 11:44:16 +0800 Subject: [PATCH] lightning: enable pd grpc client log (#58339) close pingcap/tidb#58337 --- lightning/tests/lightning_error_summary/run.sh | 2 +- pkg/lightning/log/log.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lightning/tests/lightning_error_summary/run.sh b/lightning/tests/lightning_error_summary/run.sh index 1ab35c4999793..048e8e2b930a2 100755 --- a/lightning/tests/lightning_error_summary/run.sh +++ b/lightning/tests/lightning_error_summary/run.sh @@ -44,7 +44,7 @@ check_contains 'sum(id): 28' check_contains 'sum(k): 32' # Verify the log contains the expected messages at the last few lines -tail -20 "$TEST_DIR/lightning-error-summary.log" > "$TEST_DIR/lightning-error-summary.tail" +tail -50 "$TEST_DIR/lightning-error-summary.log" > "$TEST_DIR/lightning-error-summary.tail" check_contains '["tables failed to be imported"] [count=2]' "$TEST_DIR/lightning-error-summary.tail" check_contains '[-] [table=`error_summary`.`a`] [status=checksum] [error="[Lighting:Restore:ErrChecksumMismatch]checksum mismatched' "$TEST_DIR/lightning-error-summary.tail" check_contains '[-] [table=`error_summary`.`c`] [status=checksum] [error="[Lighting:Restore:ErrChecksumMismatch]checksum mismatched' "$TEST_DIR/lightning-error-summary.tail" diff --git a/pkg/lightning/log/log.go b/pkg/lightning/log/log.go index fc41e480ee356..80ac44f24c355 100644 --- a/pkg/lightning/log/log.go +++ b/pkg/lightning/log/log.go @@ -96,7 +96,7 @@ func InitLogger(cfg *Config, _ string) error { "github.com/pingcap/tidb/br/", "/lightning/", "main.main", - "github.com/tikv/pd/client/http", + "github.com/tikv/pd/client", ) })) }