mirror of https://github.com/sirupsen/logrus.git
11 lines
190 B
Go
11 lines
190 B
Go
|
// +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()
|
||
|
}
|