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