mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
prosody, prosodyctl: Re-jiggle load order again, fixes logging config not being obeyed (thanks darkrain)
This commit is contained in:
parent
2294aed6ce
commit
c6b03a6b35
2 changed files with 43 additions and 34 deletions
12
prosodyctl
12
prosodyctl
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue