aboutsummaryrefslogtreecommitdiffstats
path: root/prosody
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-03-07 19:28:12 +0000
committerMatthew Wild <mwild1@gmail.com>2009-03-07 19:28:12 +0000
commit1eeeaf731844a81f039d4b1cab6cdfe20d8d0e30 (patch)
treebb835f778873fd1c69a799a603f9bd1845d0fd35 /prosody
parent2509fd597845eeedd3d66a13105a6d958ba68e8d (diff)
downloadprosody-1eeeaf731844a81f039d4b1cab6cdfe20d8d0e30.tar.gz
prosody-1eeeaf731844a81f039d4b1cab6cdfe20d8d0e30.zip
prosody: Load logger after reading the config
Diffstat (limited to 'prosody')
-rwxr-xr-xprosody9
1 files changed, 5 insertions, 4 deletions
diff --git a/prosody b/prosody
index 15c94c92..0e38c6c2 100755
--- a/prosody
+++ b/prosody
@@ -32,10 +32,6 @@ pcall(require, "luarocks.require")
config = require "core.configmanager"
-log = require "util.logger".init("general");
-
--- Disable log output, needs to read from config
--- require "util.logger".setwriter(function () end);
do
-- TODO: Check for other formats when we add support for them
@@ -63,6 +59,11 @@ do
end
end
+log = require "util.logger".init("general");
+
+-- Disable log output, needs to read from config
+-- require "util.logger".setwriter(function () end);
+
require "util.dependencies"
local server = require "net.server"