aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_epoll.lua
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
commit6b592b4beeacba785621223c4434179aebf3a30b (patch)
tree5ea1a530c5671c4ece169ee6a0583f7d7773d9a4 /net/server_epoll.lua
parent07502b5698cadd9513bd73a965cdee56f496f02c (diff)
downloadprosody-6b592b4beeacba785621223c4434179aebf3a30b.tar.gz
prosody-6b592b4beeacba785621223c4434179aebf3a30b.zip
net.server_epoll: Log error number from wait()
Diffstat (limited to 'net/server_epoll.lua')
-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;