From b20b9727cff388d1108c53271a6dfab85a3dbc6f Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Sun, 30 Apr 2017 09:46:15 +0200 Subject: [PATCH] More debugging info for FeedSub PuSH self-healing --- plugins/OStatus/classes/FeedSub.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/OStatus/classes/FeedSub.php b/plugins/OStatus/classes/FeedSub.php index dc80105d86..5c0073443c 100644 --- a/plugins/OStatus/classes/FeedSub.php +++ b/plugins/OStatus/classes/FeedSub.php @@ -208,7 +208,7 @@ class FeedSub extends Managed_DataObject public function ensureHub() { if ($this->sub_state !== 'inactive') { - common_log(LOG_INFO, sprintf('Running hub discovery a possibly active feed in %s state for URI %s', _ve($this->sub_state), _ve($this->uri))); + common_log(LOG_INFO, sprintf(__METHOD__ . ': Running hub discovery a possibly active feed in %s state for URI %s', _ve($this->sub_state), _ve($this->uri))); } $discover = new FeedDiscovery(); @@ -532,8 +532,9 @@ class FeedSub extends Managed_DataObject $old_huburi = $this->huburi; $this->ensureHub(); - common_debug(sprintf('Feed uri==%s huburi before=%s after=%s', _ve($this->uri), _ve($old_huburi), _ve($this->huburi))); + common_debug(sprintf(__METHOD__ . ': Feed uri==%s huburi before=%s after=%s (identical==%s)', _ve($this->uri), _ve($old_huburi), _ve($this->huburi), _ve($old_huburi===$this->huburi))); + // If the huburi is the same as before a renewal will happen some time in the future anyway. if ($old_huburi !== $this->huburi) { // let's make sure that this new hub knows that we want to subscribe $this->renew();