Changeset

8711:9932a2a5b6de

net.server: Init a local logger (fixes traceback on attempt to warn about missing luaevent due to later loggingmanager initialization)
author Kim Alvefur <zash@zash.se>
date Thu, 05 Apr 2018 15:58:08 +0200
parents 8710:ed3dcbc5336f
children 8712:e9caf447deed
files net/server.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/net/server.lua	Thu Apr 05 15:56:47 2018 +0200
+++ b/net/server.lua	Thu Apr 05 15:58:08 2018 +0200
@@ -6,6 +6,7 @@
 -- COPYING file in the source package for more information.
 --
 
+local log = require "util.logger".init("net.server");
 local server_type = prosody and require "core.configmanager".get("*", "network_backend") or "select";
 if prosody and require "core.configmanager".get("*", "use_libevent") then
 	server_type = "event";