diff --git a/log/log.go b/log/log.go index 83f31d8c6..2fd8fdb23 100644 --- a/log/log.go +++ b/log/log.go @@ -3,7 +3,6 @@ package log import ( "fmt" "os" - "runtime" "strings" "time" @@ -170,15 +169,3 @@ func (mz microZerolog) log(level string, msg string) { os.Exit(1) } } - -// parentCaller tries to detect which log method had been invoked. -func parentCaller() string { - pc, _, _, ok := runtime.Caller(4) - fn := runtime.FuncForPC(pc) - - if ok && fn != nil { - return fn.Name() - } - - return "" -}