From 1deb26349248756666933f89871dddc175184240 Mon Sep 17 00:00:00 2001 From: Georg Ringer Date: Wed, 8 Jun 2016 09:21:23 +0200 Subject: [PATCH] [TASK] Improve logging --- Classes/Service/ApiService.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Classes/Service/ApiService.php b/Classes/Service/ApiService.php index cbc8821..387b7c5 100644 --- a/Classes/Service/ApiService.php +++ b/Classes/Service/ApiService.php @@ -109,7 +109,7 @@ public function register($listId, FormDto $form) $response = $this->api->post("lists/$listId/members", $data); if ($response['status'] === 400 || $response['status'] === 401 || $response['status'] === 404) { - $this->logger->error($response['status']); + $this->logger->error($response['status'] . ' ' . $response['detail']); $this->logger->error($response['detail'], (array)$response['errors']); if ($response['title'] === 'Member Exists') { throw new MemberExistsException($response['detail']); @@ -132,8 +132,7 @@ protected function getRegistrationData($listId, FormDto $form) 'merge_fields' => array( 'FNAME' => $form->getFirstName(), 'LNAME' => $form->getLastName(), - ), - 'interests' => array(), + ) ); $interestData = $this->getInterests($form); if ($interestData) {