change fmt to slog

This commit is contained in:
abhishek9686
2025-11-29 16:26:55 +04:00
parent fbc2cb94c2
commit f2979f8ec9

View File

@@ -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