Changeset

9441:116a9d0a295c

net.server_epoll: Pass error number to logging Why do we ignore unused secondaries?
author Kim Alvefur <zash@zash.se>
date Sat, 06 Oct 2018 18:50:30 +0200
parents 9440:1ddecde4ce98
children 9442:f210ee7dffe9
files net/server_epoll.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;