1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-11-06 08:59:18 +02:00

fix logger caller depth (#2283)

This commit is contained in:
Tony Chen
2022-08-16 22:54:55 +08:00
committed by GitHub
parent de2f93fbec
commit 2d206076f8

View File

@@ -27,10 +27,6 @@ func (a *loggerAppliance) SetLogger(in Logger) {
a.Logger = in
}
func (a *loggerAppliance) Log(level Level, keyvals ...interface{}) error {
return a.Logger.Log(level, keyvals...)
}
// SetLogger should be called before any other log call.
// And it is NOT THREAD SAFE.
func SetLogger(logger Logger) {