Browse Source

change fmt to slog

abhishek9686 2 weeks ago
parent
commit
f2979f8ec9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      utils/utils.go

+ 2 - 2
utils/utils.go

@@ -67,8 +67,8 @@ func TraceCaller() {
 	funcName := runtime.FuncForPC(pc).Name()
 	funcName := runtime.FuncForPC(pc).Name()
 
 
 	// Print trace details
 	// 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
 // NoEmptyStringToCsv takes a bunch of strings, filters out empty ones and returns a csv version of the string