prosody: Initialize logging before checking dependencies (fixes another traceback...
authorMatthew Wild <mwild1@gmail.com>
Fri, 5 Feb 2010 14:32:20 +0000 (14:32 +0000)
committerMatthew Wild <mwild1@gmail.com>
Fri, 5 Feb 2010 14:32:20 +0000 (14:32 +0000)
prosody

diff --git a/prosody b/prosody
index 9d0054c528e5a9702fb18f9b8bd3cb1a33b71e2a..19bdfeb191837db8bc19c0f259074d73e632da88 100755 (executable)
--- a/prosody
+++ b/prosody
@@ -32,6 +32,9 @@ if CFG_DATADIR then
        end
 end
 
+-- Initialize logging
+require "core.loggingmanager"
+
 -- Check runtime dependencies
 if not require "util.dependencies".check_dependencies() then
        os.exit(1);
@@ -112,9 +115,6 @@ function read_config()
 end
 
 function load_libraries()
-       -- Initialize logging
-       require "core.loggingmanager"
-       
        -- Load socket framework
        server = require "net.server"
 end