mirror of
https://github.com/gravitl/netmaker.git
synced 2025-12-24 13:28:22 +08:00
change fmt to slog
This commit is contained in:
@@ -67,8 +67,8 @@ func TraceCaller() {
|
||||
funcName := runtime.FuncForPC(pc).Name()
|
||||
|
||||
// Print trace details
|
||||
fmt.Println("## TRACE -> Called from function: ", "tracing-func-name", traceFuncName, "caller-func-name", funcName)
|
||||
fmt.Println("## TRACE -> Caller File Info", "file", file, "line-no", line)
|
||||
slog.Debug("## TRACE -> Called from function: ", "tracing-func-name", traceFuncName, "caller-func-name", funcName)
|
||||
slog.Debug("## TRACE -> Caller File Info", "file", file, "line-no", line)
|
||||
}
|
||||
|
||||
// NoEmptyStringToCsv takes a bunch of strings, filters out empty ones and returns a csv version of the string
|
||||
|
||||
Reference in New Issue
Block a user