From a67a9cda04263fac49ef1653fc3d96c15e32d23e Mon Sep 17 00:00:00 2001 From: Aneesh Makala Date: Mon, 13 Jan 2025 20:56:34 +0530 Subject: [PATCH] setting error as empty string in callhome (#2178) (#2179) --- yb-voyager/src/callhome/diagnostics.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yb-voyager/src/callhome/diagnostics.go b/yb-voyager/src/callhome/diagnostics.go index 9f4d40e7b..f8dcc7165 100644 --- a/yb-voyager/src/callhome/diagnostics.go +++ b/yb-voyager/src/callhome/diagnostics.go @@ -24,7 +24,6 @@ import ( "os" "reflect" "strconv" - "strings" "github.com/google/uuid" "github.com/samber/lo" @@ -298,5 +297,6 @@ func SendPayload(payload *Payload) error { // Note: This is a temporary solution. A better solution would be to have // properly structured errors and only send the generic error message to callhome. func SanitizeErrorMsg(errorMsg string) string { - return strings.Split(errorMsg, ":")[0] + return "" // For now, returning empty string. After thorough testing, we can return the specific error message. + // return strings.Split(errorMsg, ":")[0] }