aboutsummaryrefslogtreecommitdiffstats
path: root/net/connect.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
commit90b6787b47dfdbc825d8d821a717e8f2bd3b3f03 (patch)
tree393b21ff37fe75f1a9f2a27c7647d89760546ebb /net/connect.lua
parent2b8caf8dac9239ef94ec9f6d3d4424ce9b79d294 (diff)
downloadprosody-90b6787b47dfdbc825d8d821a717e8f2bd3b3f03.tar.gz
prosody-90b6787b47dfdbc825d8d821a717e8f2bd3b3f03.zip
net.*: Remove tostring call from logging
Taken care of by loggingmanager now
Diffstat (limited to 'net/connect.lua')
-rw-r--r--net/connect.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/connect.lua b/net/connect.lua
index b812ffcd..d4de6fb4 100644
--- a/net/connect.lua
+++ b/net/connect.lua
@@ -38,7 +38,7 @@ local function attempt_connection(p)
p:log("debug", "Next target to try is %s:%d", ip, port);
local conn, err = server.addclient(ip, port, pending_connection_listeners, p.options.pattern or "*a", p.options.sslctx, conn_type, extra);
if not conn then
- log("debug", "Connection attempt failed immediately: %s", tostring(err));
+ log("debug", "Connection attempt failed immediately: %s", err);
p.last_error = err or "unknown reason";
return attempt_connection(p);
end