summaryrefslogtreecommitdiff
path: root/misc/freeswitch/scripts/http_request.lua
diff options
context:
space:
mode:
authorJulian Pawlowski <julian.pawlowski@gmail.com>2013-01-29 10:45:11 +0100
committerJulian Pawlowski <julian.pawlowski@gmail.com>2013-01-29 10:45:11 +0100
commit0b97717b2171820dea41de8df705f8f0e4b71464 (patch)
tree6a5c05313b58c29fd2799c65d26872d782d69921 /misc/freeswitch/scripts/http_request.lua
parent2cdeb604527414bb865b08a7f4529025ec0802d9 (diff)
parent24f613cac47fae29a48dab351e9ee195f5b53eed (diff)
Merge branch 'develop'
Diffstat (limited to 'misc/freeswitch/scripts/http_request.lua')
-rw-r--r--misc/freeswitch/scripts/http_request.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/misc/freeswitch/scripts/http_request.lua b/misc/freeswitch/scripts/http_request.lua
index 8acdcb6..1d6f791 100644
--- a/misc/freeswitch/scripts/http_request.lua
+++ b/misc/freeswitch/scripts/http_request.lua
@@ -28,4 +28,9 @@ if user and password then
end
local success, result, response_headers = http.request{url = url, headers = headers };
-log:debug('HTTP_REQUEST - url: ', url, ', auth: ', tostring(headers.Authorization ~= nil), ', result: ', result);
+
+if success 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);
+end