Wrong package level logger initialization timing #52883
Labels
affects-8.1
component/ddl
This issue is related to DDL of TiDB.
severity/moderate
type/bug
The issue is confirmed as a bug.
in #52645 I added a package level logger
tidb/pkg/ddl/ingest/env.go
Line 32 in e8c397f
But when the variable is set,
logutil.BgLogger()
is not initialized yet. It prints to stdout insteadwe should set them after
tidb/cmd/tidb-server/main.go
Lines 873 to 880 in e8c397f
The text was updated successfully, but these errors were encountered: