Index: includes/form.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/form.inc,v
retrieving revision 1.265.2.32
diff -u -p -r1.265.2.32 form.inc
--- includes/form.inc	1 Mar 2010 09:24:22 -0000	1.265.2.32
+++ includes/form.inc	12 Mar 2010 19:16:26 -0000
@@ -580,6 +580,7 @@ function drupal_validate_form($form_id, 
     if (!drupal_valid_token($form_state['values']['form_token'], $form['#token'])) {
       // Setting this error will cause the form to fail validation.
       form_set_error('form_token', t('Validation error, please try again. If this error persists, please contact the site administrator.'));
+      watchdog('system', 'Validation error in form submitted by %user. Form token %sent_token was sent, %expected_token was expected.', array('%user' => $GLOBALS['user']->name, '%sent_token' => $form_state['values']['form_token'], '%expected_token' => md5(session_id() . $form['#token'] . variable_get('drupal_private_key', ''))), WATCHDOG_ERROR, l(t('view form'), $_GET['q']));
     }
   }
 