summaryrefslogtreecommitdiff
path: root/internal/log/caller.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/log/caller.go')
-rw-r--r--internal/log/caller.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/internal/log/caller.go b/internal/log/caller.go
index 8d5c67643..b6c2416cd 100644
--- a/internal/log/caller.go
+++ b/internal/log/caller.go
@@ -34,12 +34,7 @@ func Caller(depth int) string {
return ""
}
- // return formatted name
- return callername(fn)
-}
-
-// callername generates a human-readable calling function name.
-func callername(fn *runtime.Func) string {
+ // Get func name.
name := fn.Name()
// Drop all but the package name and function name, no mod path