private function updateAction(ContaoContext $context, $level) { if (null !== $context->getAction()) { return; } if ($level >= Logger::ERROR) { $context->setAction(ContaoContext::ERROR); } else { $context->setAction(ContaoContext::GENERAL); } }