aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_epoll.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-01-12 20:36:04 +0100
committerKim Alvefur <zash@zash.se>2020-01-12 20:36:04 +0100
commit4a424901c6baefd64fb99acdb019517f6b77d856 (patch)
tree7a7ade09b0a77ddbcace368eef101a3c3b2f363c /net/server_epoll.lua
parentdeedb80ea43834999a49e509bed8d55b0810d95b (diff)
downloadprosody-4a424901c6baefd64fb99acdb019517f6b77d856.tar.gz
prosody-4a424901c6baefd64fb99acdb019517f6b77d856.zip
net.server_epoll: Log errors caught in listeners on 'error' level
Diffstat (limited to 'net/server_epoll.lua')
-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 b5c69a6d..74cec7a2 100644
--- a/net/server_epoll.lua
+++ b/net/server_epoll.lua
@@ -191,7 +191,7 @@ function interface:on(what, ...)
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);