Improve postman debug message

This commit is contained in:
Diogo Cordeiro 2018-07-31 20:28:52 +01:00
parent d90fabd15e
commit 3121d3435d
2 changed files with 2 additions and 2 deletions

View File

@ -99,7 +99,7 @@ class Activitypub_notice extends Managed_DataObject
$location = Notice_location::locFromStored($notice);
$item['latitude'] = $location->lat;
$item['longitude'] = $location->lon;
} catch (Exception $ex) {
} catch (Exception $e) {
// Apparently no.
}

View File

@ -100,7 +100,7 @@ class Activitypub_postman
{
common_debug('ActivityPub Postman: Delivering '.$data.' to '.$inbox);
$response = $this->client->request($method, $inbox, ['headers' => array_merge($this->headers, ['(request-target)' => strtolower($method).' '.parse_url($inbox, PHP_URL_PATH)]),'body' => $data]);
common_debug('ActivityPub Postman: Delivery result: '.$response->getBody()->getContents());
common_debug('ActivityPub Postman: Delivery result with status code '.$response->getStatusCode().': '.$response->getBody()->getContents());
return $response;
}