You are here

public function SiteAuditCheckWatchdogSyslog::getAction in Site Audit 7

Same name and namespace in other branches
  1. 8.2 Check/Watchdog/Syslog.php \SiteAuditCheckWatchdogSyslog::getAction()

Implements \SiteAudit\Check\Abstract\getAction().

Overrides SiteAuditCheckAbstract::getAction

File

Check/Watchdog/Syslog.php, line 58
Contains \SiteAudit\Check\Watchdog\Syslog.

Class

SiteAuditCheckWatchdogSyslog
Class SiteAuditCheckWatchdogSyslog.

Code

public function getAction() {
  if ($this
    ->getScore() == SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_FAIL && drush_get_option('vendor') == 'pantheon') {
    return dt('On Pantheon, you can technically write to syslog, but there is no mechanism for reading it. Disable syslog and enable dblog instead.');
  }
}