diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-05-29 22:06:21 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-05-29 22:06:21 +0100 |
commit | 820e322c2a64bc0162d45e32c287497336ea1314 (patch) | |
tree | 681720876857fb4fe3514de7c217464dbdde7ba6 /net/httpclient_listener.lua | |
parent | 66e22f3c576fcb4666a0eb8156015cdd2bb79e2c (diff) | |
parent | 0d7aa536d5b382f9d2eb3a2f725ebd038ec97284 (diff) | |
download | prosody-820e322c2a64bc0162d45e32c287497336ea1314.tar.gz prosody-820e322c2a64bc0162d45e32c287497336ea1314.zip |
Automated merge with http://waqas.ath.cx:8000/
Diffstat (limited to 'net/httpclient_listener.lua')
-rw-r--r-- | net/httpclient_listener.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/httpclient_listener.lua b/net/httpclient_listener.lua index 9c4f23f3..a648743f 100644 --- a/net/httpclient_listener.lua +++ b/net/httpclient_listener.lua @@ -1,7 +1,7 @@ +local log = require "util.logger".init("httpclient_listener"); local connlisteners_register = require "net.connlisteners".register; - local requests = {}; -- Open requests local buffers = {}; -- Buffers of partial lines @@ -11,7 +11,7 @@ function httpclient.listener(conn, data) local request = requests[conn]; if not request then - print("NO REQUEST!! for "..tostring(conn)); + log("warn", "Received response from connection %s with no request attached!", tostring(conn)); return; end @@ -29,7 +29,7 @@ function httpclient.disconnect(conn, err) end function httpclient.register_request(conn, req) - print("Registering a request for "..tostring(conn)); + log("debug", "Attaching request %s to connection %s", tostring(req.id or req), tostring(conn)); requests[conn] = req; end |