Index: includes/update.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/update.inc,v
retrieving revision 1.44
diff -u -p -r1.44 update.inc
--- includes/update.inc	21 Apr 2010 07:05:44 -0000	1.44
+++ includes/update.inc	24 Apr 2010 17:34:33 -0000
@@ -715,9 +715,11 @@ function update_do_one($module, $number,
       $ret['results']['query'] = $function($context['sandbox']);
       $ret['results']['success'] = TRUE;
     }
-    // @TODO We may want to do different error handling for different exception
-    // types, but for now we'll just print the message.
+    // @TODO We may want to do different error handling for different
+    // exception types, but for now we'll just log the exception and
+    // return the message for printing.
     catch (Exception $e) {
+      watchdog('update', $e->getMessage(), array(), WATCHDOG_ERROR);
       $ret['#abort'] = array('success' => FALSE, 'query' => $e->getMessage());
     }
 
