From c6b03a6b3571375252e092330af9afab91a70553 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Thu, 11 Feb 2010 11:31:14 +0000 Subject: prosody, prosodyctl: Re-jiggle load order again, fixes logging config not being obeyed (thanks darkrain) --- prosodyctl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'prosodyctl') diff --git a/prosodyctl b/prosodyctl index 70474900..9d2df69e 100755 --- a/prosodyctl +++ b/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"; -- cgit v1.2.3