Skip to content

Commit

Permalink
setting error as empty string in callhome (#2178) (#2179)
Browse files Browse the repository at this point in the history
  • Loading branch information
makalaaneesh authored Jan 13, 2025
1 parent 9efc327 commit a67a9cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yb-voyager/src/callhome/diagnostics.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import (
"os"
"reflect"
"strconv"
"strings"

"github.com/google/uuid"
"github.com/samber/lo"
Expand Down Expand Up @@ -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]
}

0 comments on commit a67a9cd

Please sign in to comment.