Get right logrus package name
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// +build !go1.14
|
||||
|
||||
package logrus
|
||||
|
||||
import "runtime"
|
||||
|
||||
// funcName returns the function name that logrus calls
|
||||
func funcName(pcs []uintptr) string {
|
||||
return runtime.FuncForPC(pcs[1]).Name()
|
||||
}
|
||||
Reference in New Issue
Block a user