diff options
author | Brion Vibber <brion@pobox.com> | 2010-02-19 16:21:17 -0800 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-02-19 16:21:17 -0800 |
commit | 557df3d3f78dbfce656c4c8e3ddf82ee0e34da0a (patch) | |
tree | ebc29f47b4319e3cab55b7677baf71f2c3c19231 /plugins/OStatus/lib/salmon.php | |
parent | d69f6dff6a0b62ddab929f6ba0801533a9031162 (diff) |
OStatus: sub/unsub notifications working again. Fixed up autodetection of feed info at profile setup time
Diffstat (limited to 'plugins/OStatus/lib/salmon.php')
-rw-r--r-- | plugins/OStatus/lib/salmon.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/OStatus/lib/salmon.php b/plugins/OStatus/lib/salmon.php index 8c77222a6..df17a7006 100644 --- a/plugins/OStatus/lib/salmon.php +++ b/plugins/OStatus/lib/salmon.php @@ -41,9 +41,12 @@ class Salmon $client->setBody($xml); $response = $client->post($endpoint_uri, $headers); } catch (HTTP_Request2_Exception $e) { + common_log(LOG_ERR, "Salmon post to $endpoint_uri failed: " . $e->getMessage()); return false; } if ($response->getStatus() != 200) { + common_log(LOG_ERR, "Salmon at $endpoint_uri returned status " . + $response->getStatus() . ': ' . $response->getBody()); return false; } |