Skip to content

Commit

Permalink
lightning: enable pd grpc client log (#58339)
Browse files Browse the repository at this point in the history
close #58337
  • Loading branch information
okJiang authored Dec 20, 2024
1 parent 85b4656 commit 05a35ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lightning/tests/lightning_error_summary/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion pkg/lightning/log/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)
}))
}
Expand Down

0 comments on commit 05a35ca

Please sign in to comment.