Fix the wrong log tag in the test case (#18103)

Signed-off-by: SimFG <bang.fu@zilliz.com>
pull/18121/head
SimFG 2022-07-06 15:38:20 +08:00 committed by GitHub
parent 1c9647ff31
commit 79523ff8d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

4
.gitignore vendored
View File

@ -84,3 +84,7 @@ venv/
# docker compose volumes
deployments/docker/*/volumes
# rocksdb
cwrapper_rocksdb_build/
internal/kv/rocksdb/cwrapper/

View File

@ -129,7 +129,7 @@ func initFileLog(cfg *FileLogConfig) (*lumberjack.Logger, error) {
func newStdLogger() (*zap.Logger, *ZapProperties) {
conf := &Config{Level: "debug", File: FileLogConfig{}}
lg, r, _ := InitLogger(conf)
lg, r, _ := InitLogger(conf, zap.AddCallerSkip(1))
return lg, r
}