Comparison

net/server.lua @ 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
parent 8700:d611c46c6787
child 9215:b087b5047f86
comparison
equal deleted inserted replaced
8710:ed3dcbc5336f 8711:9932a2a5b6de
4 -- 4 --
5 -- This project is MIT/X11 licensed. Please see the 5 -- This project is MIT/X11 licensed. Please see the
6 -- COPYING file in the source package for more information. 6 -- COPYING file in the source package for more information.
7 -- 7 --
8 8
9 local log = require "util.logger".init("net.server");
9 local server_type = prosody and require "core.configmanager".get("*", "network_backend") or "select"; 10 local server_type = prosody and require "core.configmanager".get("*", "network_backend") or "select";
10 if prosody and require "core.configmanager".get("*", "use_libevent") then 11 if prosody and require "core.configmanager".get("*", "use_libevent") then
11 server_type = "event"; 12 server_type = "event";
12 end 13 end
13 14