diff --git a/utils/utils.go b/utils/utils.go index 4fb9c096..cc44bb95 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -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