]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/OStatus/lib/salmonaction.php
Use common_debug() instead of common_log(LOG_DEBUG, ) to minimize code duplication.
[quix0rs-gnu-social.git] / plugins / OStatus / lib / salmonaction.php
index d26c1f949b7584b13a8150376c0ceeebc9029931..bb3a6180d82edbd4451ba7f6b48147c6c7b3d2c4 100644 (file)
@@ -61,7 +61,7 @@ class SalmonAction extends Action
 
         // Cryptographic verification test
         if (!$magic_env->verify($profile)) {
-            common_log(LOG_DEBUG, "Salmon signature verification failed.");
+            common_debug("Salmon signature verification failed.");
             // TRANS: Client error.
             $this->clientError(_m('Salmon signature verification failed.'));
         }
@@ -80,7 +80,7 @@ class SalmonAction extends Action
     {
         parent::handle();
 
-        common_log(LOG_DEBUG, "Got a " . $this->activity->verb);
+        common_debug("Got a " . $this->activity->verb);
         try {
             if (Event::handle('StartHandleSalmonTarget', array($this->activity, $this->target)) &&
                     Event::handle('StartHandleSalmon', array($this->activity))) {