diff options
author | Kim Alvefur <zash@zash.se> | 2016-08-10 20:55:31 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-08-10 20:55:31 +0200 |
commit | 57c3c911f50ea40ce2aa4c744ad9f680c3bdb24a (patch) | |
tree | 56807134dec338a890dc3c67340f04205146faee /net/server_epoll.lua | |
parent | 3253630d186cd5e66c6ee24834adad6064260e15 (diff) | |
download | prosody-57c3c911f50ea40ce2aa4c744ad9f680c3bdb24a.tar.gz prosody-57c3c911f50ea40ce2aa4c744ad9f680c3bdb24a.zip |
net.server_epoll: Log epoll_ctl() calls and return values
Diffstat (limited to 'net/server_epoll.lua')
-rw-r--r-- | net/server_epoll.lua | 2 |
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; |