protected function log(PostRevision $post, Workflow $workflow)
 {
     $moderationChangeTypes = self::getModerationChangeTypes();
     if (!in_array($post->getChangeType(), $moderationChangeTypes)) {
         // Do nothing for non-moderation actions
         return;
     }
     if ($this->moderationLogger->canLog($post, $post->getChangeType())) {
         $workflowId = $workflow->getId();
         $this->moderationLogger->log($post, $post->getChangeType(), $post->getModeratedReason(), $workflowId);
     }
 }