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:
parent
de2f93fbec
commit
2d206076f8
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user