Project

General

Profile

Revision b0dc3a2e

Added by Julien Enselme over 7 years ago

Update to Drupal 7.52

View differences:

drupal7/includes/errors.inc
199 199
    $number++;
200 200
  }
201 201

  
202
  watchdog('php', '%type: !message in %function (line %line of %file).', $error, $error['severity_level']);
202
  // Log the error immediately, unless this is a non-fatal error which has been
203
  // triggered via drupal_trigger_error_with_delayed_logging(); in that case
204
  // trigger it in a shutdown function. Fatal errors are always triggered
205
  // immediately since for a fatal error the page request will end here anyway.
206
  if (!$fatal && drupal_static('_drupal_trigger_error_with_delayed_logging')) {
207
    drupal_register_shutdown_function('watchdog', 'php', '%type: !message in %function (line %line of %file).', $error, $error['severity_level']);
208
  }
209
  else {
210
    watchdog('php', '%type: !message in %function (line %line of %file).', $error, $error['severity_level']);
211
  }
203 212

  
204 213
  if ($fatal) {
205 214
    drupal_add_http_header('Status', '500 Service unavailable (with message)');

Also available in: Unified diff