prosodyctl: Force log output always to the console instead of using the config, which avoids creating log files as the wrong user

Thu, 08 Jul 2010 23:56:53 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Thu, 08 Jul 2010 23:56:53 +0100
changeset 3338
d50b6b3efad1
parent 3337
4bccec3c24e5
child 3339
7893055e54d1

prosodyctl: Force log output always to the console instead of using the config, which avoids creating log files as the wrong user

prosodyctl file | annotate | diff | comparison | revisions
--- a/prosodyctl	Thu Jul 08 21:10:42 2010 +0100
+++ b/prosodyctl	Thu Jul 08 23:56:53 2010 +0100
@@ -65,6 +65,8 @@
 	end
 end
 
+config.set("*", "core", "log", { { levels = { min="info" }, to = "console" } });
+
 require "core.loggingmanager"
 
 if not require "util.dependencies".check_dependencies() then

mercurial