# HG changeset patch # User Kim Alvefur # Date 1538844630 -7200 # Node ID 116a9d0a295c03d51c9563a041d103fefd79f6df # Parent 1ddecde4ce9880615359256f188c1ae900b41c01 net.server_epoll: Pass error number to logging Why do we ignore unused secondaries? diff -r 1ddecde4ce98 -r 116a9d0a295c net/server_epoll.lua --- a/net/server_epoll.lua Sat Oct 06 18:32:57 2018 +0200 +++ b/net/server_epoll.lua Sat Oct 06 18:50:30 2018 +0200 @@ -267,7 +267,7 @@ 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;