Skip to content
Snippets Groups Projects
Commit 57b16a9f authored by mattwire's avatar mattwire
Browse files

Change some debug log messages to error log messages

parent 932a8bbc
No related branches found
No related tags found
1 merge request!1146.4.1
...@@ -210,7 +210,7 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment { ...@@ -210,7 +210,7 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment {
public static function parseStripeException($op, $e, $log = FALSE) { public static function parseStripeException($op, $e, $log = FALSE) {
$body = $e->getJsonBody(); $body = $e->getJsonBody();
if ($log) { if ($log) {
Civi::log()->debug("Stripe_Error {$op}: " . print_r($body, TRUE)); Civi::log()->error("Stripe_Error {$op}: " . print_r($body, TRUE));
} }
$err = $body['error']; $err = $body['error'];
if (!isset($err['code'])) { if (!isset($err['code'])) {
...@@ -988,7 +988,7 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment { ...@@ -988,7 +988,7 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment {
catch (Exception $e) { catch (Exception $e) {
$errorMessage = 'Could not delete Stripe subscription: ' . $e->getMessage(); $errorMessage = 'Could not delete Stripe subscription: ' . $e->getMessage();
CRM_Core_Session::setStatus($errorMessage, 'Stripe', 'error'); CRM_Core_Session::setStatus($errorMessage, 'Stripe', 'error');
Civi::log()->debug($errorMessage); Civi::log()->error($errorMessage);
return FALSE; return FALSE;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment