From 90b79abec45323c94fd394a39325d7233a7d5798 Mon Sep 17 00:00:00 2001 From: Zpekii Date: Sat, 10 Jan 2026 17:32:55 +0800 Subject: [PATCH] fix: remove unused file information from caller logging function --- cmn/utils/utils.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmn/utils/utils.go b/cmn/utils/utils.go index 3c57778..6fa6644 100644 --- a/cmn/utils/utils.go +++ b/cmn/utils/utils.go @@ -7,7 +7,7 @@ import ( // Fnc prints the caller function name, file and line number. func Fnc() { - pc, file, line, ok := runtime.Caller(1) + pc, _, line, ok := runtime.Caller(1) if !ok { fmt.Println("unable to get caller") return @@ -17,5 +17,5 @@ func Fnc() { if fn != nil { name = fn.Name() } - fmt.Printf("%s %s:%d <----\n", name, file, line) + fmt.Printf("%s:%d <----\n", name, line) }