function apachesolr_log_exception in Apache Solr Search 7
Log exceptions.
Parameters
$env_id: The environment ID.
\Exception $e:
22 calls to apachesolr_log_exception()
- apachesolr_clear_cache in ./
apachesolr.module - A wrapper for cache_clear_all to be used as a submit handler on forms that require clearing Luke cache etc.
- apachesolr_config_file in ./
apachesolr.admin.inc - Page callback to show one conf file.
- apachesolr_config_files_overview in ./
apachesolr.admin.inc - Page callback to show available conf files.
- apachesolr_cron in ./
apachesolr.module - Implements hook_cron(). Runs the indexing process on all writable environments or just a given environment.
- apachesolr_index_batch_index_entities in ./
apachesolr.admin.inc - Batch Operation Callback
File
- ./
apachesolr.module, line 3053 - Integration with the Apache Solr search application.
Code
function apachesolr_log_exception($env_id, $exception) {
// TODO: Should we call watchdog_exception() from here?
$backtrace = $exception
->getTrace();
$caller = _drupal_get_last_caller($backtrace);
watchdog('Apache Solr', 'Exception caught for function %function (line %line of %file), Environment @env_id: ' . nl2br(check_plain($exception
->getMessage())), array(
'%function' => $caller['function'],
'%file' => $caller['file'],
'%line' => $caller['line'],
'@env_id' => $env_id,
), WATCHDOG_ERROR);
}