public function PuSHEnvironment::log in Feeds 8.2
Implements PuSHSubscriberEnvironmentInterface::log().
Overrides PuSHSubscriberEnvironmentInterface::log
File
- lib/
Drupal/ feeds/ PuSHEnvironment.php, line 30
Class
- PuSHEnvironment
- Provide environmental functions to the PuSHSubscriber library.
Namespace
Drupal\feedsCode
public function log($msg, $level = 'status') {
switch ($level) {
case 'error':
$severity = WATCHDOG_ERROR;
break;
case 'warning':
$severity = WATCHDOG_WARNING;
break;
default:
$severity = WATCHDOG_NOTICE;
break;
}
feeds_dbg($msg);
watchdog('FeedsHTTPFetcher', $msg, array(), $severity);
}