Index: modules/search/search.pages.inc
===================================================================
RCS file: /cvs/drupal/drupal/modules/search/search.pages.inc,v
retrieving revision 1.13
diff -u -r1.13 search.pages.inc
--- modules/search/search.pages.inc	12 Dec 2009 20:49:34 -0000	1.13
+++ modules/search/search.pages.inc	7 Jan 2010 16:24:37 -0000
@@ -25,10 +25,11 @@
     // Only perform search if there is non-whitespace search term:
     $results = '';
     if (trim($keys)) {
-      // Log the search keys:
-      watchdog('search', '%keys (@type).', array('%keys' => $keys, '@type' => module_invoke($type, 'search', 'name')), WATCHDOG_NOTICE, l(t('results'), 'search/' . $type . '/' . $keys));
+      // Log the search keys.
+      $info = search_get_info();
+      watchdog('search', 'Searched %type for %keys.', array('%keys' => $keys, '%type' => $info[$type]['title']), WATCHDOG_NOTICE, l(t('results'), 'search/' . $type . '/' . $keys));
 
-      // Collect the search results:
+      // Collect the search results.
       $results = search_data($keys, $type);
 
       // Construct the search form.
