Changeset

10588:ceadf3d3fecf

net.server_epoll: Log errors caught in listeners on 'error' level
author Kim Alvefur <zash@zash.se>
date Sun, 12 Jan 2020 20:36:04 +0100
parents 10587:863aa36a9dd8
children 10589:3540118699cf
files net/server_epoll.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/net/server_epoll.lua	Sun Jan 12 20:35:04 2020 +0100
+++ b/net/server_epoll.lua	Sun Jan 12 20:36:04 2020 +0100
@@ -191,7 +191,7 @@
 	local ok, err = xpcall(listener, traceback, self, ...);
 	if not ok then
 		if cfg.fatal_errors then
-			self:debug("Closing due to error calling on%s: %s", what, err);
+			self:error("Closing due to error calling on%s: %s", what, err);
 			self:destroy();
 		else
 			self:debug("Error calling on%s: %s", what, err);