Salmon log message tidying up
This commit is contained in:
parent
03fc02c26f
commit
9e6599b9fb
|
@ -68,12 +68,12 @@ class Salmon
|
||||||
$client->setBody($envxml);
|
$client->setBody($envxml);
|
||||||
$response = $client->post($endpoint_uri, $headers);
|
$response = $client->post($endpoint_uri, $headers);
|
||||||
} catch (HTTP_Request2_Exception $e) {
|
} catch (HTTP_Request2_Exception $e) {
|
||||||
common_log(LOG_ERR, "Salmon ($class) post to $endpoint_uri failed: " . $e->getMessage());
|
common_log(LOG_ERR, "Salmon post to $endpoint_uri failed: " . $e->getMessage());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if ($response->getStatus() != 200) {
|
if ($response->getStatus() != 200) {
|
||||||
common_log(LOG_ERR, sprintf('Salmon at %s returned status %s: %s',
|
common_log(LOG_ERR, sprintf('Salmon (from profile %d) endpoint %s returned status %s: %s',
|
||||||
$endpoint_uri, $response->getStatus(), $response->getBody()));
|
$actor->id, $endpoint_uri, $response->getStatus(), $response->getBody()));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user