prosody, prosodyctl: Re-jiggle load order again, fixes logging config not being obeyed (thanks darkrain)

This commit is contained in:
Matthew Wild 2010-02-11 11:31:14 +00:00
parent 2294aed6ce
commit c6b03a6b35
2 changed files with 43 additions and 34 deletions

View file

@ -29,12 +29,6 @@ if CFG_DATADIR then
end
end
require "core.loggingmanager"
if not require "util.dependencies".check_dependencies() then
os.exit(1);
end
config = require "core.configmanager"
do
@ -63,6 +57,12 @@ do
end
end
require "core.loggingmanager"
if not require "util.dependencies".check_dependencies() then
os.exit(1);
end
prosody = { hosts = {}, events = events, platform = "posix" };
local data_path = config.get("*", "core", "data_path") or CFG_DATADIR or "data";