From 79523ff8d49f0c9185ca85fa381706c12464394a Mon Sep 17 00:00:00 2001 From: SimFG Date: Wed, 6 Jul 2022 15:38:20 +0800 Subject: [PATCH] Fix the wrong log tag in the test case (#18103) Signed-off-by: SimFG --- .gitignore | 4 ++++ internal/log/log.go | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index ed54ca864a..59a1dbe579 100644 --- a/.gitignore +++ b/.gitignore @@ -84,3 +84,7 @@ venv/ # docker compose volumes deployments/docker/*/volumes + +# rocksdb +cwrapper_rocksdb_build/ +internal/kv/rocksdb/cwrapper/ \ No newline at end of file diff --git a/internal/log/log.go b/internal/log/log.go index 8487eab37e..1b4bd9f137 100644 --- a/internal/log/log.go +++ b/internal/log/log.go @@ -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 }