couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [08/23] couchdb commit: updated refs/heads/master to aa9f32d
Date Thu, 28 Aug 2014 12:37:30 GMT
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/master
Commit: 02bd48a975478b1a0b6b4a25dbc4a6b951879bd0
Parents: 681b993
Author: Paul J. Davis <paul.joseph.davis@gmail.com>
Authored: Sun Aug 10 16:31:39 2014 -0500
Committer: Paul J. Davis <paul.joseph.davis@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"]
+            }]}
+        ]}
+    ]}
+].


Mime
View raw message