aboutsummaryrefslogtreecommitdiffstats
path: root/net/server.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-04-05 15:58:08 +0200
committerKim Alvefur <zash@zash.se>2018-04-05 15:58:08 +0200
commit19deb98aefe8abcdbc6cb930134dfb789efd2404 (patch)
tree5f9473af20d14b4c6886dc2b5af28c1cefd44eb7 /net/server.lua
parent268c164b862feb1af000a4bd9be5d12174310a7a (diff)
downloadprosody-19deb98aefe8abcdbc6cb930134dfb789efd2404.tar.gz
prosody-19deb98aefe8abcdbc6cb930134dfb789efd2404.zip
net.server: Init a local logger (fixes traceback on attempt to warn about missing luaevent due to later loggingmanager initialization)
Diffstat (limited to 'net/server.lua')
-rw-r--r--net/server.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/server.lua b/net/server.lua
index 8b6fbc0b..d8f24847 100644
--- a/net/server.lua
+++ b/net/server.lua
@@ -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";