]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
some logging for OStatusPlugin::onStartFindMentions()
authorEvan Prodromou <evan@status.net>
Tue, 23 Feb 2010 21:13:24 +0000 (16:13 -0500)
committerEvan Prodromou <evan@status.net>
Tue, 23 Feb 2010 21:13:24 +0000 (16:13 -0500)
plugins/OStatus/OStatusPlugin.php

index 3a9e77c2a6ca95324ef61dd3b24e4b5ec7ded9d4..934c858ac1818dcd6531753582de47ac47116b7e 100644 (file)
@@ -235,9 +235,17 @@ class OStatusPlugin extends Plugin
 
             $webfinger = $wmatch[0];
 
+            $this->log(LOG_INFO, "Checking Webfinger for address '$webfinger'");
+
             $oprofile = Ostatus_profile::ensureWebfinger($webfinger);
 
-            if (!empty($oprofile)) {
+            if (empty($oprofile)) {
+
+                $this->log(LOG_INFO, "No Ostatus_profile found for address '$webfinger'");
+
+            } else {
+
+                $this->log(LOG_INFO, "Ostatus_profile found for address '$webfinger'");
 
                 $profile = $oprofile->localProfile();