diff options
-rw-r--r-- | includes/update.inc | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/includes/update.inc b/includes/update.inc index 51504a811..60eadfbc2 100644 --- a/includes/update.inc +++ b/includes/update.inc @@ -793,16 +793,9 @@ function update_do_one($module, $number, $dependency_map, &$context) { return; } - if (!isset($context['log'])) { - $context['log'] = variable_get('update_log_queries', 0); - } - $ret = array(); if (function_exists($function)) { try { - if ($context['log']) { - Database::startLog($function); - } $ret['results']['query'] = $function($context['sandbox']); $ret['results']['success'] = TRUE; } @@ -816,10 +809,6 @@ function update_do_one($module, $number, $dependency_map, &$context) { $variables = _drupal_decode_exception($e); $ret['#abort'] = array('success' => FALSE, 'query' => t('%type: %message in %function (line %line of %file).', $variables)); } - - if ($context['log']) { - $ret['queries'] = Database::getLog($function); - } } if (isset($context['sandbox']['#finished'])) { |