Diff

util/startup.lua @ 8719:0cb84aafeee6

util.startup: Initialize logging earlier, so that messages from eg net.server are shown
author Kim Alvefur <zash@zash.se>
date Thu, 05 Apr 2018 17:41:00 +0200
parent 8715:25d8d6091ec3
child 8720:dba17a70fd22
line wrap: on
line diff
--- a/util/startup.lua	Thu Mar 29 20:51:16 2018 +0200
+++ b/util/startup.lua	Thu Apr 05 17:41:00 2018 +0200
@@ -521,10 +521,10 @@
 	startup.sandbox_require();
 	startup.set_function_metatable();
 	startup.check_dependencies();
+	startup.init_logging();
 	startup.load_libraries();
 	startup.setup_plugindir();
 	startup.setup_datadir();
-	startup.init_logging();
 	startup.chdir();
 	startup.add_global_prosody_functions();
 	startup.read_version();