]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Salmon log message tidying up
authorMikael Nordfeldth <mmn@hethane.se>
Wed, 28 May 2014 12:07:47 +0000 (14:07 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Wed, 28 May 2014 12:07:47 +0000 (14:07 +0200)
plugins/OStatus/lib/salmon.php

index 250a85aaad7d759f753f26b4255f7f65142be1e4..4e02c56c71bcf8644441871968c5499c1534a555 100644 (file)
@@ -68,12 +68,12 @@ class Salmon
             $client->setBody($envxml);
             $response = $client->post($endpoint_uri, $headers);
         } 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;
         }
         if ($response->getStatus() != 200) {
-            common_log(LOG_ERR, sprintf('Salmon at %s returned status %s: %s',
-                                $endpoint_uri, $response->getStatus(), $response->getBody()));
+            common_log(LOG_ERR, sprintf('Salmon (from profile %d) endpoint %s returned status %s: %s',
+                                $actor->id, $endpoint_uri, $response->getStatus(), $response->getBody()));
             return false;
         }