From 9b2c4b27408cbb45a53ea42fe24588474e4e60b8 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 6 Oct 2018 18:50:30 +0200 Subject: net.server_epoll: Pass error number to logging Why do we ignore unused secondaries? --- net/server_epoll.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net') 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; -- cgit v1.2.3