aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-10-07 17:40:13 +0200
committerKim Alvefur <zash@zash.se>2018-10-07 17:40:13 +0200
commitc81f221767c6b7a8a65259f56cc5cf49ab70744e (patch)
tree5ea1a530c5671c4ece169ee6a0583f7d7773d9a4
parent7f563615fd60936c2fb8d6d2d3d2d3627491e6f2 (diff)
downloadprosody-c81f221767c6b7a8a65259f56cc5cf49ab70744e.tar.gz
prosody-c81f221767c6b7a8a65259f56cc5cf49ab70744e.zip
net.server_epoll: Log error number from wait()
-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 fde007f6..7a860878 100644
--- a/net/server_epoll.lua
+++ b/net/server_epoll.lua
@@ -714,7 +714,7 @@ local function loop(once)
poll:del(fd);
end
elseif r ~= "timeout" then
- log("debug", "epoll_wait error: %s", tostring(r));
+ log("debug", "epoll_wait error: %s[%d]", r, w);
end
until once or (quitting and next(fds) == nil);
return quitting;