Diff

util/startup.lua @ 8755:857d8f38a010

util.startup: Force console logging before initializing logging (see 2fdeb979cc7c)
author Kim Alvefur <zash@zash.se>
date Sat, 14 Apr 2018 15:23:08 +0200
parent 8748:2fdeb979cc7c
child 8756:2db9c9e3adc1
line wrap: on
line diff
--- a/util/startup.lua	Fri Mar 09 18:22:38 2018 +0100
+++ b/util/startup.lua	Sat Apr 14 15:23:08 2018 +0200
@@ -505,6 +505,7 @@
 function startup.prosodyctl()
 	startup.init_global_state();
 	startup.read_config();
+	startup.force_console_logging();
 	startup.init_logging();
 	startup.setup_plugindir();
 	startup.setup_datadir();
@@ -512,7 +513,6 @@
 	startup.read_version();
 	startup.switch_user();
 	startup.check_dependencies();
-	startup.force_console_logging();
 	startup.log_dependency_warnings();
 	startup.check_unwriteable();
 	startup.load_libraries();