function ip_geoloc_log_errors in IP Geolocation Views & Maps 7
Same name and namespace in other branches
- 8 ip_geoloc.module \ip_geoloc_log_errors()
Log errors via the watchdog.
1 call to ip_geoloc_log_errors()
- ip_geoloc_init in ./
ip_geoloc.module - Implements hook_init().
File
- ./
ip_geoloc.module, line 304 - IPGV&M is a mapping engine for Views that contain locations of entities and/or visitors. Google Maps, Leaflet and OpenLayers2 maps are all supported. and available through this module. Using a number of optional sources IPGV&M also retrieves…
Code
function ip_geoloc_log_errors() {
if ($error = _ip_geoloc_get_session_value('error')) {
// @todo How do we treat repeated 'user declined to share location' errors?
watchdog('IPGV&M', $error, NULL, WATCHDOG_NOTICE);
ip_geoloc_debug('IPGV&M, ' . ip_address() . ': ' . $error, 'warning');
_ip_geoloc_set_session_value('error', NULL);
}
}