Comparison

net/server_epoll.lua @ 10589:3540118699cf

net.server_epoll: Log error about missing *all* callbacks at 'error' level
author Kim Alvefur <zash@zash.se>
date Sun, 12 Jan 2020 20:36:21 +0100
parent 10588:ceadf3d3fecf
child 10638:92918212ee83
comparison
equal deleted inserted replaced
10588:ceadf3d3fecf 10589:3540118699cf
178 end 178 end
179 179
180 -- Call a listener callback 180 -- Call a listener callback
181 function interface:on(what, ...) 181 function interface:on(what, ...)
182 if not self.listeners then 182 if not self.listeners then
183 self:debug("Interface is missing listener callbacks"); 183 self:error("Interface is missing listener callbacks");
184 return; 184 return;
185 end 185 end
186 local listener = self.listeners["on"..what]; 186 local listener = self.listeners["on"..what];
187 if not listener then 187 if not listener then
188 self:noise("Missing listener 'on%s'", what); -- uncomment for development and debugging 188 self:noise("Missing listener 'on%s'", what); -- uncomment for development and debugging