fix logger caller depth (#2283)

pull/2284/head
Tony Chen 2 years ago committed by GitHub
parent de2f93fbec
commit 2d206076f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      log/global.go

@ -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…
Cancel
Save