aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-08-10 20:55:31 +0200
committerKim Alvefur <zash@zash.se>2016-08-10 20:55:31 +0200
commitb18c28c0566c71725891cf1499e82c98dd581ac7 (patch)
tree56807134dec338a890dc3c67340f04205146faee /net
parentcab3f507435a926a428d95df6e2af4f4ec9f8a48 (diff)
downloadprosody-b18c28c0566c71725891cf1499e82c98dd581ac7.tar.gz
prosody-b18c28c0566c71725891cf1499e82c98dd581ac7.zip
net.server_epoll: Log epoll_ctl() calls and return values
Diffstat (limited to 'net')
-rw-r--r--net/server_epoll.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/server_epoll.lua b/net/server_epoll.lua
index 57da4287..c450f658 100644
--- a/net/server_epoll.lua
+++ b/net/server_epoll.lua
@@ -216,6 +216,8 @@ function interface:setflags(r, w)
op = "add";
end
local ok, err = epoll.ctl(op, fd, flags);
+ log("debug", "epoll_ctl(%q, %d, %q) -> %s" .. (err and ", %q" or ""),
+ op, fd, flags or "", tostring(ok), err);
if not ok then return ok, err end
self._flags = flags;
return true;