Skip to content

Commit

Permalink
chore: update to 5xx, add obscit log for visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
yashasvibajpai committed Jan 6, 2025
1 parent 483e8db commit 99ab6de
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
backendconfig "github.com/rudderlabs/rudder-server/backend-config"
"github.com/rudderlabs/rudder-server/jobsdb"
"github.com/rudderlabs/rudder-server/router/batchrouter/asyncdestinationmanager/common"
obskit "github.com/rudderlabs/rudder-observability-kit/go/labels"
)

const (
Expand Down Expand Up @@ -118,11 +119,12 @@ func (kbu *KlaviyoBulkUploader) Poll(pollInput common.AsyncPoll) common.PollStat
allComplete = false
pollresp, err := kbu.KlaviyoAPIService.GetUploadStatus(importId)
if err != nil {
kbu.Logger.Errorn("Error during fetching Klaviyo Bulk Upload status", obskit.Error(err))
return common.PollStatusResponse{
StatusCode: 400,
StatusCode: 500,
Complete: true,
HasFailed: true,
Error: `Error during fetching upload status `+ err.Error(),
Error: `Error during fetching upload status ` + err.Error(),
}
}

Expand Down

0 comments on commit 99ab6de

Please sign in to comment.