Merge 0.10->trunk
authorMatthew Wild <mwild1@gmail.com>
Thu, 07 Jun 2018 11:24:29 +0100
changeset 8885 a420b386a72a
parent 8882 4dee8c439afc (current diff)
parent 8884 a0de4fc4acd5 (diff)
child 8886 3f975bbfec3b
Merge 0.10->trunk
prosodyctl
util/startup.lua
--- a/.hgtags	Wed Jun 06 15:26:16 2018 +0200
+++ b/.hgtags	Thu Jun 07 11:24:29 2018 +0100
@@ -64,3 +64,4 @@
 082d127286451eb55420c36424dd321e8d9bceee 0.9.13
 4ae8dd415e9431924ad4aa0b57bcee8a4a9272f8 0.10.1
 29c6d2681bad9f67d8bd548bb3a7973473bae91e 0.9.14
+7ec098b68042f60687f1002e788b34b06048945d 0.10.2
--- a/util/startup.lua	Wed Jun 06 15:26:16 2018 +0200
+++ b/util/startup.lua	Thu Jun 07 11:24:29 2018 +0100
@@ -374,7 +374,7 @@
 -- Override logging config (used by prosodyctl)
 function startup.force_console_logging()
 	original_logging_config = config.get("*", "log");
-	config.set("*", "log", { { levels = { min="info" }, to = "console" } });
+	config.set("*", "log", { { levels = { min = os.getenv("PROSODYCTL_LOG_LEVEL") or "info" }, to = "console" } });
 end
 
 function startup.switch_user()