mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-24 13:58:12 -05:00
remove unused method
This commit is contained in:
13
log/log.go
13
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 ""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user