summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-03-01 14:30:28 -0500
committerEvan Prodromou <evan@status.net>2010-03-01 18:03:17 -0500
commit48ce511f947e966b624dc3cf6e6b884361c3370d (patch)
treef1aba0aa0070d408bfc8b88756026449eb8b31a2 /classes
parentc3ba26bb9955ae5d924426dc0e4ff6c48b4399ad (diff)
Better logging on bad token in subscription
Diffstat (limited to 'classes')
-rw-r--r--classes/Subscription.php5
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}");
}
}