further enhanced error handling + added retries in case of parallel writes
This commit is contained in:
@ -12,12 +12,7 @@ if (!$token) {
|
||||
try {
|
||||
token_revoke($token);
|
||||
} catch (Throwable $e) {
|
||||
if (function_exists('qdb_api_log_note_exception')) {
|
||||
qdb_api_log_note_exception($e);
|
||||
}
|
||||
require_once __DIR__ . '/../lib/errors.php';
|
||||
error_log('logout: ' . $e->getMessage());
|
||||
json_error('SERVER_ERROR', qdb_public_error_message($e, 'Logout'), 500);
|
||||
qdb_handler_fail($e, 'Logout');
|
||||
}
|
||||
|
||||
json_success(['loggedOut' => true]);
|
||||
|
||||
Reference in New Issue
Block a user