aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-10-12 19:51:29 +0200
committerKim Alvefur <zash@zash.se>2019-10-12 19:51:29 +0200
commit73d6c64bd7b061a8790919daac19e09cd00fa5e1 (patch)
tree1c34cbc5c3596a207661579d0bbbe9022cbbe571 /net
parent9e6dce07bf7a9836eb8123bf198c8671d423157f (diff)
downloadprosody-73d6c64bd7b061a8790919daac19e09cd00fa5e1.tar.gz
prosody-73d6c64bd7b061a8790919daac19e09cd00fa5e1.zip
net.server_epoll: Move a log message to improve ordering
It was weird that it said "Prepared to start TLS" before "Client .. created"
Diffstat (limited to 'net')
-rw-r--r--net/server_epoll.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/server_epoll.lua b/net/server_epoll.lua
index cccc8b5d..3b134312 100644
--- a/net/server_epoll.lua
+++ b/net/server_epoll.lua
@@ -775,10 +775,10 @@ local function addclient(addr, port, listeners, read_size, tls_ctx, typ, extra)
local client = wrapsocket(conn, nil, read_size, listeners, tls_ctx, extra)
local ok, err = client:init();
if not ok then return ok, err; end
+ client:debug("Client %s created", client);
if tls_ctx then
client:starttls(tls_ctx);
end
- client:debug("Client %s created", client);
return client, conn;
end