From b18c28c0566c71725891cf1499e82c98dd581ac7 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 10 Aug 2016 20:55:31 +0200 Subject: net.server_epoll: Log epoll_ctl() calls and return values --- net/server_epoll.lua | 2 ++ 1 file changed, 2 insertions(+) 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; -- cgit v1.2.3