Index: apachesolr/current/apachesolr.admin.inc
===================================================================
--- apachesolr/current/apachesolr.admin.inc	(revision 283)
+++ apachesolr/current/apachesolr.admin.inc	(working copy)
@@ -60,6 +60,12 @@
     '#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', 0),
+    '#description' => t('If checked every search will be logged to watchdog.'),
+  );
   $form['apachesolr_failure'] = array(
     '#type' => 'select',
     '#title' => t('On failure'),
Index: apachesolr/current/apachesolr_search.module
===================================================================
--- apachesolr/current/apachesolr_search.module	(revision 283)
+++ apachesolr/current/apachesolr_search.module	(working copy)
@@ -162,7 +162,9 @@
       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', 0)) {
+        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);
