diff options
author | Evan Prodromou <evan@status.net> | 2010-03-01 14:30:28 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-03-01 18:03:17 -0500 |
commit | 48ce511f947e966b624dc3cf6e6b884361c3370d (patch) | |
tree | f1aba0aa0070d408bfc8b88756026449eb8b31a2 | |
parent | c3ba26bb9955ae5d924426dc0e4ff6c48b4399ad (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}"); } } |