@@ -326,7 +326,8 @@ func (s *SyncStateRetrieverImpl) getNewRunInfo(ctx context.Context, namespaceId
326326 switch err .(type ) {
327327 case nil :
328328 case * serviceerror.NotFound :
329- s .logger .Info (fmt .Sprintf ("SyncWorkflowState new run not found, newRunId: %v" , newRunId ),
329+ s .logger .Info ("SyncWorkflowState new run not found" ,
330+ tag .WorkflowNewRunID (newRunId ),
330331 tag .WorkflowNamespaceID (namespaceId .String ()),
331332 tag .WorkflowID (execution .WorkflowId ),
332333 tag .WorkflowRunID (execution .RunId ))
@@ -350,7 +351,8 @@ func (s *SyncStateRetrieverImpl) getNewRunInfo(ctx context.Context, namespaceId
350351 switch err .(type ) {
351352 case nil :
352353 case * serviceerror.NotFound :
353- s .logger .Info (fmt .Sprintf ("SyncWorkflowState new run event not found, newRunId: %v" , newRunId ),
354+ s .logger .Info ("SyncWorkflowState new run event not found" ,
355+ tag .WorkflowNewRunID (newRunId ),
354356 tag .WorkflowNamespaceID (namespaceId .String ()),
355357 tag .WorkflowID (execution .WorkflowId ),
356358 tag .WorkflowRunID (execution .RunId ))
@@ -359,7 +361,8 @@ func (s *SyncStateRetrieverImpl) getNewRunInfo(ctx context.Context, namespaceId
359361 return nil , err
360362 }
361363 if len (newRunEvents ) == 0 {
362- s .logger .Info (fmt .Sprintf ("SyncWorkflowState new run event is empty, newRunId: %v" , newRunId ),
364+ s .logger .Info ("SyncWorkflowState new run event is empty" ,
365+ tag .WorkflowNewRunID (newRunId ),
363366 tag .WorkflowNamespaceID (namespaceId .String ()),
364367 tag .WorkflowID (execution .WorkflowId ),
365368 tag .WorkflowRunID (execution .RunId ))
0 commit comments