Software /
code /
prosody
Diff
prosodyctl @ 2587:c37f971f0fe6
prosody, prosodyctl: Re-jiggle load order again, fixes logging config not being obeyed (thanks darkrain)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 11 Feb 2010 11:31:14 +0000 |
parent | 2566:48dfd5c9dc5d |
child | 2696:cb5acafbec62 |
line wrap: on
line diff
--- a/prosodyctl Thu Feb 11 11:04:26 2010 +0000 +++ b/prosodyctl Thu Feb 11 11:31:14 2010 +0000 @@ -29,12 +29,6 @@ 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 @@ 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";