diff --git a/booking.stripe.inc b/booking.stripe.inc index 3d2d9a1..72b730b 100644 --- a/booking.stripe.inc +++ b/booking.stripe.inc @@ -224,20 +224,23 @@ function booking_stripe_validate_form_payment($form, &$form_state) { catch(\Stripe\Error\Card $e) { $e_json = $e->getJsonBody(); $error = $e_json['error']; - watchdog('booking', $e->getMessage()); + watchdog('booking', "
Detected exception processing Stripe payment (!message)\n@info", + array('!message' => $e->getMessage(), '@info' => print_r( $e->getTrace() ))); drupal_set_message($e->getMessage(), 'error'); } catch (\Stripe\Error\ApiConnection $e) { - watchdog('booking', $e->getMessage()); + watchdog('booking', "
Detected exception processing Stripe payment (!message)\n@info", + array('!message' => $e->getMessage(), '@info' => print_r( $e->getTrace() ))); drupal_set_message($e->getMessage(), 'error'); } catch (\Stripe\Error\Api $e) { - watchdog('booking', $e->getMessage()); + watchdog('booking', "
Detected exception processing Stripe payment (!message)\n@info", + array('!message' => $e->getMessage(), '@info' => print_r( $e->getTrace() ))); drupal_set_message($e->getMessage(), 'error'); } catch (\Stripe\Exception\CardException $e) { - watchdog('booking', "
Detected exception processing Stripe payment (!message)\n!error", - array('!message' => $e->getMessage(), '!error' => print_r($e->getTrace()))); + watchdog('booking', "
Detected exception processing Stripe payment (!message)\n@info", + array('!message' => $e->getMessage(), '@info' => print_r( $e->getTrace() ))); drupal_set_message($e->getMessage(), 'error'); } }