[management] Log UpdateAccountPeers caller (#4216)

This commit is contained in:
Pascal Fischer
2025-07-24 17:44:48 +02:00
committed by GitHub
parent 1a9ea32c21
commit 04fae00a6c
2 changed files with 18 additions and 0 deletions

15
util/runtime.go Normal file
View File

@ -0,0 +1,15 @@
package util
import "runtime"
func GetCallerName() string {
pc, _, _, ok := runtime.Caller(2)
if !ok {
return "unknown"
}
fn := runtime.FuncForPC(pc)
if fn == nil {
return "unknown"
}
return fn.Name()
}