prosody: Initialize logging before checking dependencies (fixes another traceback with no LuaSec)

Fri, 05 Feb 2010 14:32:20 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Fri, 05 Feb 2010 14:32:20 +0000
changeset 2565
a0d22b6a3144
parent 2564
6b4fe320a6ea
child 2566
48dfd5c9dc5d

prosody: Initialize logging before checking dependencies (fixes another traceback with no LuaSec)

prosody file | annotate | diff | comparison | revisions
--- a/prosody	Fri Feb 05 14:31:25 2010 +0000
+++ b/prosody	Fri Feb 05 14:32:20 2010 +0000
@@ -32,6 +32,9 @@
 	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 @@
 end
 
 function load_libraries()
-	-- Initialize logging
-	require "core.loggingmanager"
-	
 	-- Load socket framework
 	server = require "net.server"
 end	

mercurial