Changeset

2565:a0d22b6a3144

prosody: Initialize logging before checking dependencies (fixes another traceback with no LuaSec)
author Matthew Wild <mwild1@gmail.com>
date Fri, 05 Feb 2010 14:32:20 +0000
parents 2564:6b4fe320a6ea
children 2566:48dfd5c9dc5d
files prosody
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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