Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: skip one caller stack to locate the correct caller (#4196)
Tianzhou (天舟)4beccada256b
diff --git a/common/log/logger.go b/common/log/logger.goindex f79058bd4d..26762a5df5 100644--- a/common/log/logger.go+++ b/common/log/logger.go@@ -25,7 +25,10 @@ func init() {EncoderConfig: zap.NewDevelopmentEncoderConfig(),OutputPaths: []string{"stderr"},ErrorOutputPaths: []string{"stderr"},- }.Build()+ }.Build(+ // Skip one caller stack to locate the correct caller.+ zap.AddCallerSkip(1),+ )}// SetLevel wraps the zap Level's SetLevel method.