1
0
mirror of https://github.com/go-kratos/kratos.git synced 2024-12-28 21:09:04 +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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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) {