Improve postman debug message
This commit is contained in:
parent
d90fabd15e
commit
3121d3435d
@ -99,7 +99,7 @@ class Activitypub_notice extends Managed_DataObject
|
|||||||
$location = Notice_location::locFromStored($notice);
|
$location = Notice_location::locFromStored($notice);
|
||||||
$item['latitude'] = $location->lat;
|
$item['latitude'] = $location->lat;
|
||||||
$item['longitude'] = $location->lon;
|
$item['longitude'] = $location->lon;
|
||||||
} catch (Exception $ex) {
|
} catch (Exception $e) {
|
||||||
// Apparently no.
|
// Apparently no.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -100,7 +100,7 @@ class Activitypub_postman
|
|||||||
{
|
{
|
||||||
common_debug('ActivityPub Postman: Delivering '.$data.' to '.$inbox);
|
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]);
|
$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;
|
return $response;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user