diff options
author | Evan Prodromou <evan@status.net> | 2010-03-01 14:30:28 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-03-01 14:30:28 -0500 |
commit | 30c992004ff44516a1502f5e118b0395300bcbc0 (patch) | |
tree | 1bdd120d018b5e87603f8111e89614b458d809c4 | |
parent | ef54702008143568afa77c1dda86da530a321d0f (diff) |
Better logging on bad token in subscription
-rw-r--r-- | classes/Subscription.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/classes/Subscription.php b/classes/Subscription.php index 878ab83e6..da695c36e 100644 --- a/classes/Subscription.php +++ b/classes/Subscription.php @@ -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}"); } } |