aboutsummaryrefslogtreecommitdiffstats
path: root/net/http.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-07-30 02:35:17 +0200
committerKim Alvefur <zash@zash.se>2019-07-30 02:35:17 +0200
commit75bfec7731e0d42ad5733a62b9772db9c72aeef9 (patch)
tree393b21ff37fe75f1a9f2a27c7647d89760546ebb /net/http.lua
parent40b1e3e0ed1223517f29bcf136fc08a6f33b17f2 (diff)
downloadprosody-75bfec7731e0d42ad5733a62b9772db9c72aeef9.tar.gz
prosody-75bfec7731e0d42ad5733a62b9772db9c72aeef9.zip
net.*: Remove tostring call from logging
Taken care of by loggingmanager now
Diffstat (limited to 'net/http.lua')
-rw-r--r--net/http.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/http.lua b/net/http.lua
index fe5250ac..0e03fb3a 100644
--- a/net/http.lua
+++ b/net/http.lua
@@ -40,7 +40,7 @@ local listener = { default_port = 80, default_mode = "*a" };
local function handleerr(err) log("error", "Traceback[http]: %s", traceback(tostring(err), 2)); return err; end
local function log_if_failed(req, ret, ...)
if not ret then
- log("error", "Request '%s': error in callback: %s", req.id, tostring((...)));
+ log("error", "Request '%s': error in callback: %s", req.id, (...));
if not req.suppress_errors then
error(...);
end
@@ -150,7 +150,7 @@ function listener.onincoming(conn, data)
local request = requests[conn];
if not request then
- log("warn", "Received response from connection %s with no request attached!", tostring(conn));
+ log("warn", "Received response from connection %s with no request attached!", conn);
return;
end