prosody: Load logger after reading the config

Sat, 07 Mar 2009 19:28:12 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Sat, 07 Mar 2009 19:28:12 +0000
changeset 882
e362bafbbb68
parent 881
c508fb40552a
child 883
0112ae30f399

prosody: Load logger after reading the config

prosody file | annotate | diff | comparison | revisions
--- a/prosody	Wed Mar 04 18:48:29 2009 +0000
+++ b/prosody	Sat Mar 07 19:28:12 2009 +0000
@@ -32,10 +32,6 @@
 
 
 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 @@
 	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"

mercurial