Index: includes/update.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/update.inc,v
retrieving revision 1.64
diff -u -p -r1.64 update.inc
--- includes/update.inc	17 Jul 2010 19:44:06 -0000	1.64
+++ includes/update.inc	1 Aug 2010 22:15:08 -0000
@@ -790,16 +790,9 @@ function update_do_one($module, $number,
     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;
     }
@@ -813,10 +806,6 @@ function update_do_one($module, $number,
       $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'])) {
