Update dependencies

This commit is contained in:
TwinProduction committed 2021-10-03 22:15:20 -04:00
1 parent 2d3fe9795f
commit 154bc7dbc6
1204 files changed
+373532 -50576

No files matched your search

+10 -2
View File
@@ -154,8 +154,16 @@ func trc(s string, args ...interface{}) string { //TODO-
default:
s = fmt.Sprintf(s, args...)
}
_, fn, fl, _ := runtime.Caller(1)
r := fmt.Sprintf("%s:%d: TRC %s", fn, fl, s)
pc, fn, fl, _ := runtime.Caller(1)
f := runtime.FuncForPC(pc)
var fns string
if f != nil {
fns = f.Name()
if x := strings.LastIndex(fns, "."); x > 0 {
fns = fns[x+1:]
}
}
r := fmt.Sprintf("%s:%d:%s: TRC %s", fn, fl, fns, s)
fmt.Fprintf(os.Stdout, "%s\n", r)
os.Stdout.Sync()
return r