Software /
code /
prosody
Diff
net/http.lua @ 10112:b327f2870382
net.*: Remove tostring call from logging
Taken care of by loggingmanager now
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 30 Jul 2019 02:35:17 +0200 |
parent | 9611:2700317f93e4 |
child | 10235:6c804b6b2ca2 |
line wrap: on
line diff
--- a/net/http.lua Tue Jul 30 02:29:36 2019 +0200 +++ b/net/http.lua Tue Jul 30 02:35:17 2019 +0200 @@ -40,7 +40,7 @@ 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 @@ 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