]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/PubSubPublish.php
More rework to make private communities working
[friendica.git] / src / Worker / PubSubPublish.php
index 4b1c78bf2dee3da2bf0aa1b26316c714be78e21f..e84ac3152e36e8c5a5e3114885e2e42688e08dce 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -66,13 +66,13 @@ class PubSubPublish
                                        $subscriber['topic']),
                        'X-Hub-Signature' => 'sha1=' . $hmac_sig];
 
-               Logger::debug('POST ' . ['headers' => $headers, 'params' => $params]);
+               Logger::debug('POST', ['headers' => $headers, 'params' => $params]);
 
                $postResult = DI::httpClient()->post($subscriber['callback_url'], $params, $headers);
                $ret = $postResult->getReturnCode();
 
                if ($ret >= 200 && $ret <= 299) {
-                       Logger::notice('Successfully pushed to ' . $subscriber['callback_url']);
+                       Logger::info('Successfully pushed to ' . $subscriber['callback_url']);
 
                        PushSubscriber::reset($subscriber['id'], $last_update);
                } else {