diff --git a/service/history/api/get_workflow_util.go b/service/history/api/get_workflow_util.go index 52899a5f2ef..aa5297510de 100644 --- a/service/history/api/get_workflow_util.go +++ b/service/history/api/get_workflow_util.go @@ -54,7 +54,7 @@ func GetOrPollMutableState( eventNotifier events.Notifier, ) (*historyservice.GetMutableStateResponse, error) { - logger := shardContext.GetLogger() + logger := shard.GetLogger() namespaceID := namespace.ID(request.GetNamespaceId()) err := ValidateNamespaceUUID(namespaceID) if err != nil {