You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ch...@apache.org on 2014/08/29 22:33:48 UTC

[09/30] couchdb commit: updated refs/heads/1963-eunit-bigcouch to d1a82df

Have lager log to the console only by default

This is a short term fix to get lager to send its output to
stdout/stderr so that it is directed into the appropriate logs for
dev/run.


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/02bd48a9
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/02bd48a9
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/02bd48a9

Branch: refs/heads/1963-eunit-bigcouch
Commit: 02bd48a975478b1a0b6b4a25dbc4a6b951879bd0
Parents: 681b993
Author: Paul J. Davis <pa...@gmail.com>
Authored: Sun Aug 10 16:31:39 2014 -0500
Committer: Paul J. Davis <pa...@gmail.com>
Committed: Sun Aug 10 16:31:39 2014 -0500

----------------------------------------------------------------------
 dev/run              |  1 +
 rel/files/sys.config | 13 ++++++++++++-
 2 files changed, 13 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/02bd48a9/dev/run
----------------------------------------------------------------------
diff --git a/dev/run b/dev/run
index 58a3c5f..a4f76cb 100755
--- a/dev/run
+++ b/dev/run
@@ -151,6 +151,7 @@ def boot_node(node):
     cmd = [
         "erl",
         "-args_file", os.path.join(DEV_PATH, "lib", node, "etc", "vm.args"),
+        "-config", os.path.join(COUCHDB, "rel", "files", "sys"),
         "-couch_ini",
             os.path.join(DEV_PATH, "lib", node, "etc", "default.ini"),
             os.path.join(DEV_PATH, "lib", node, "etc", "local.ini"),

http://git-wip-us.apache.org/repos/asf/couchdb/blob/02bd48a9/rel/files/sys.config
----------------------------------------------------------------------
diff --git a/rel/files/sys.config b/rel/files/sys.config
index 97562f5..e9a7bd2 100644
--- a/rel/files/sys.config
+++ b/rel/files/sys.config
@@ -10,4 +10,15 @@
 % License for the specific language governing permissions and limitations under
 % the License.
 
-[].
+[
+    {lager, [
+        {error_logger_hwm, 1000},
+        {error_logger_redirect, true},
+        {handlers, [
+            {lager_console_backend, [debug, {
+                lager_default_formatter,
+                [date, " ", time," [",severity,"] ",pid, " ", message, "\n"]
+            }]}
+        ]}
+    ]}
+].