Skip to content

Commit

Permalink
Log error when fetchHistoryFromRemote fails (uber#4807)
Browse files Browse the repository at this point in the history
  • Loading branch information
mantas-sidlauskas authored Apr 27, 2022
1 parent e91a5a7 commit 22f97c8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions service/history/task/transfer_standby_task_executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ func (t *transferStandbyTaskExecutor) fetchHistoryFromRemote(
_ context.Context,
taskInfo Info,
postActionInfo interface{},
log log.Logger,
_ log.Logger,
) error {

if postActionInfo == nil {
Expand Down Expand Up @@ -645,7 +645,9 @@ func (t *transferStandbyTaskExecutor) fetchHistoryFromRemote(
tag.WorkflowDomainID(transferTask.DomainID),
tag.WorkflowID(transferTask.WorkflowID),
tag.WorkflowRunID(transferTask.RunID),
tag.SourceCluster(t.clusterName))
tag.SourceCluster(t.clusterName),
tag.Error(err),
)
}

// return error so task processing logic will retry
Expand Down

0 comments on commit 22f97c8

Please sign in to comment.