Skip to content

Commit

Permalink
[TASK] Improve logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Georg Ringer committed Jun 8, 2016
1 parent 0d04a8b commit 1deb263
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Classes/Service/ApiService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand All @@ -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) {
Expand Down

0 comments on commit 1deb263

Please sign in to comment.