Skip to content

Commit

Permalink
Logging improvement for persistence errors (uber#1334)
Browse files Browse the repository at this point in the history
Log domainID for any persistence errors when updating workflow
execution.
  • Loading branch information
samarabbas authored Dec 14, 2018
1 parent 8f3f5c1 commit 59d60b6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions service/history/workflowExecutionContext.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,9 @@ var (
func newWorkflowExecutionContext(domainID string, execution workflow.WorkflowExecution, shard ShardContext,
executionManager persistence.ExecutionManager, logger bark.Logger) *workflowExecutionContextImpl {
lg := logger.WithFields(bark.Fields{
logging.TagWorkflowExecutionID: *execution.WorkflowId,
logging.TagWorkflowRunID: *execution.RunId,
logging.TagDomainID: domainID,
logging.TagWorkflowExecutionID: execution.GetWorkflowId(),
logging.TagWorkflowRunID: execution.GetRunId(),
})

return &workflowExecutionContextImpl{
Expand Down

0 comments on commit 59d60b6

Please sign in to comment.