Better logging on bad token in subscription
This commit is contained in:
parent
ef54702008
commit
30c992004f
@ -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}");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user