diff options
author | Matthew Wild <mwild1@gmail.com> | 2011-02-13 22:57:17 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2011-02-13 22:57:17 +0000 |
commit | 404c107e3fd464e5bb35b792eb4a13ac22071afa (patch) | |
tree | def99a42a133e217a8fe9d30d14c11c2dfd86550 /net | |
parent | bbb4eabf46f51c0835606c87fb4746b72af8ae5b (diff) | |
download | prosody-404c107e3fd464e5bb35b792eb4a13ac22071afa.tar.gz prosody-404c107e3fd464e5bb35b792eb4a13ac22071afa.zip |
net.httpserver: Log when an error occurs inside a HTTP request handler
Diffstat (limited to 'net')
-rw-r--r-- | net/httpserver.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/httpserver.lua b/net/httpserver.lua index d401f47c..33ced072 100644 --- a/net/httpserver.lua +++ b/net/httpserver.lua @@ -122,6 +122,7 @@ local function request_reader(request, data, startpos) call_callback(request); end local function error_cb(r) + log("error", "Error in HTTP server handler: %s", r or "connection-closed"); call_callback(request, r or "connection-closed"); destroy_request(request); end |