Return response for ejabberd API calls
This commit is contained in:
parent
8b3243af6b
commit
9c35323bcd
@ -8,9 +8,10 @@ class EjabberdApiClient
|
||||
"Content-Type" => "application/json")
|
||||
|
||||
if res.status != 200
|
||||
#TODO Send custom event to Sentry
|
||||
Rails.logger.error "[ejabberd] API request failed:"
|
||||
Rails.logger.error res.body
|
||||
#TODO Send custom event to Sentry
|
||||
res
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user