aboutsummaryrefslogtreecommitdiffstats
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
commit57c3c911f50ea40ce2aa4c744ad9f680c3bdb24a (patch)
tree56807134dec338a890dc3c67340f04205146faee
parent3253630d186cd5e66c6ee24834adad6064260e15 (diff)
downloadprosody-57c3c911f50ea40ce2aa4c744ad9f680c3bdb24a.tar.gz
prosody-57c3c911f50ea40ce2aa4c744ad9f680c3bdb24a.zip
net.server_epoll: Log epoll_ctl() calls and return values
-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;