status-go/vendor/github.com/anacrolix/log/log.go

14 lines
201 B
Go
Raw Normal View History

2022-03-10 09:44:48 +00:00
package log
import (
"runtime"
)
func Call() Msg {
var pc [1]uintptr
n := runtime.Callers(4, pc[:])
fs := runtime.CallersFrames(pc[:n])
f, _ := fs.Next()
return Fmsg("called %q", f.Function)
}