summaryrefslogtreecommitdiff
path: root/misc/freeswitch
diff options
context:
space:
mode:
authorspag <spag@golwen.net>2013-02-06 18:50:50 +0100
committerspag <spag@golwen.net>2013-02-06 18:50:50 +0100
commit5016e204cd2026b11aef79e3a3aa10907aa9e739 (patch)
tree542961da4cadd301460669ad1aa7badca76a5eb7 /misc/freeswitch
parent87c71a3b6f33d28b03a8bde95cc3f921400dc8ae (diff)
increase verbosity when request fails
Diffstat (limited to 'misc/freeswitch')
-rw-r--r--misc/freeswitch/scripts/http_request.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/freeswitch/scripts/http_request.lua b/misc/freeswitch/scripts/http_request.lua
index 1d6f791..a74b4d8 100644
--- a/misc/freeswitch/scripts/http_request.lua
+++ b/misc/freeswitch/scripts/http_request.lua
@@ -29,7 +29,7 @@ end
local success, result, response_headers = http.request{url = url, headers = headers };
-if success then
+if success and tostring(result) == '200' then
log:debug('HTTP_REQUEST - url: ', url, ', auth: ', tostring(headers.Authorization ~= nil), ', result: ', result);
else
log:notice('HTTP_REQUEST - url: ', url, ', auth: ', tostring(headers.Authorization ~= nil), ', result: ', result);