Skip to content

Commit

Permalink
PAOPN-273: change 'getResponseBody' in exception call to 'getMessage'
Browse files Browse the repository at this point in the history
  • Loading branch information
claudio-pagarme committed Dec 20, 2022
1 parent ea55b74 commit d7b0e8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Observer/AdminCustomerBeforeSave.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function execute(EventObserver $observer)
$customerService->updateCustomerAtPagarme($platformCustomer);
} catch (\Exception $exception) {
$log = new LogService('CustomerService');
$log->info($exception->getResponseBody());
$log->info($exception->getMessage());

if ($exception->getCode() == 404) {
$log->info(
Expand Down

0 comments on commit d7b0e8c

Please sign in to comment.