Skip to content

Commit

Permalink
Correct format for Civi::log()->log(). Refs eileenmcnaughton#28.
Browse files Browse the repository at this point in the history
  • Loading branch information
xurizaemon committed Apr 29, 2017
1 parent b65ea56 commit 5441cc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Core/Payment/PaymentExtended.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ protected function handleError($level, $message, $context, $errorCode = 9001, $u
// Reset gateway to NULL so don't cache it. The size of the object or closures within it could
// cause problems when serializing & saving.
$this->gateway = NULL;
Civi::log()->log($level, $message, $context);
Civi::log()->log($level, $message, array('context' => $context));
$log = new CRM_Utils_SystemLogger();
$log->log($level, $message, (array) $context);
throw new \Civi\Payment\Exception\PaymentProcessorException($userMessage);
Expand Down

0 comments on commit 5441cc1

Please sign in to comment.