aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-10-06 18:50:30 +0200
committerKim Alvefur <zash@zash.se>2018-10-06 18:50:30 +0200
commite02f405a5fcc3f90ed881261d2953a90a3a16257 (patch)
tree4968c4c15acb56f24cc88ad60f3c5f4f7ffd9ff2
parent1da6bcc301359d67524fbf53b975e84c9907f37d (diff)
downloadprosody-e02f405a5fcc3f90ed881261d2953a90a3a16257.tar.gz
prosody-e02f405a5fcc3f90ed881261d2953a90a3a16257.zip
net.server_epoll: Pass error number to logging
Why do we ignore unused secondaries?
-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 be77f761..fde007f6 100644
--- a/net/server_epoll.lua
+++ b/net/server_epoll.lua
@@ -267,7 +267,7 @@ function interface:add(r, w)
if w == nil then w = self._wantwrite; end
local ok, err, errno = poll:add(fd, r, w);
if not ok then
- log("error", "Could not register %s: %s(%d)", self, err);
+ log("error", "Could not register %s: %s(%d)", self, err, errno);
return ok, err;
end
self._wantread, self._wantwrite = r, w;