public function IpGeoLocGlobal::logErrors in IP Geolocation Views & Maps 8
Log errors via the watchdog.
File
- src/
Services/ IpGeoLocGlobal.php, line 45
Class
- IpGeoLocGlobal
- Class IpGeoLocGlobal.
Namespace
Drupal\ip_geoloc\ServicesCode
public function logErrors() {
if ($error = $this->ipGeolocSession
->getSessionValue('error')) {
// @todo How do we treat repeated 'user declined to share location' errors?
// @TODO migrate debug functoin
$this->logger
->get('IPGV&M')
->notice($error);
// ip_geoloc_debug('IPGV&M, ' . ip_address() . ': ' . $error, 'warning');.
$this->ipGeolocSession
->setSessionValue('error', NULL);
}
}