? apachesolr_date_format.patch
? watchdog_search_logging_configurable.patch
Index: apachesolr.admin.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/apachesolr/apachesolr.admin.inc,v
retrieving revision 1.1.2.47
diff -u -p -r1.1.2.47 apachesolr.admin.inc
--- apachesolr.admin.inc	27 Feb 2010 01:54:50 -0000	1.1.2.47
+++ apachesolr.admin.inc	7 Mar 2010 19:38:34 -0000
@@ -60,6 +60,12 @@ function apachesolr_settings() {
     '#options' => $options,
     '#description' => t('The number of results that will be shown per page.'),
   );
+  $form['apachesolr_log_searches_to_watchdog'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Log searches to watchdog'),
+    '#default_value' => variable_get('apachesolr_log_searches_to_watchdog', 1),
+    '#description' => t('If checked every search will be logged to watchdog.'),
+  );
   $form['apachesolr_failure'] = array(
     '#type' => 'select',
     '#title' => t('On failure'),
Index: apachesolr_search.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/apachesolr/apachesolr_search.module,v
retrieving revision 1.1.2.6.2.133
diff -u -p -r1.1.2.6.2.133 apachesolr_search.module
--- apachesolr_search.module	24 Feb 2010 23:00:01 -0000	1.1.2.6.2.133
+++ apachesolr_search.module	7 Mar 2010 19:38:34 -0000
@@ -162,7 +162,9 @@ function apachesolr_search_view($type = 
       if ($filters) {
         $log .= 'filters='. $filters;
       }
-      watchdog('search', '%keys (@type).', array('%keys' => $log, '@type' => t('Search')), WATCHDOG_NOTICE, l(t('results'), 'search/'. $type .'/'. $keys));
+      if (variable_get('apachesolr_log_searches_to_watchdog', 1)) {
+        watchdog('search', '%keys (@type).', array('%keys' => $log, '@type' => t('Search')), WATCHDOG_NOTICE, l(t('results'), 'search/'. $type .'/'. $keys));
+      }
 
       // Collect the search results:
       $results = search_data($keys, $type);
