]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Better logging on bad token in subscription
authorEvan Prodromou <evan@status.net>
Mon, 1 Mar 2010 19:30:28 +0000 (14:30 -0500)
committerEvan Prodromou <evan@status.net>
Mon, 1 Mar 2010 23:03:17 +0000 (18:03 -0500)
classes/Subscription.php

index 878ab83e633c54af93613f93d4f0c2808c78f277..da695c36e5539d1384ead313fada59963c5f0fe8 100644 (file)
@@ -185,10 +185,13 @@ class Subscription extends Memcached_DataObject
                 if ($token->find(true)) {
 
                     $result = $token->delete();
+
                     if (!$result) {
-                        common_log_db_error($sub, 'DELETE', __FILE__);
+                        common_log_db_error($token, 'DELETE', __FILE__);
                         throw new Exception(_('Couldn\'t delete subscription OMB token.'));
                     }
+                } else {
+                    common_log(LOG_ERR, "Couldn't find credentials with token {$token->tok}");
                 }
             }