summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Kocoloski <adam@cloudant.com>2010-08-26 14:04:43 -0400
committerAdam Kocoloski <adam@cloudant.com>2010-08-26 14:24:50 -0400
commit51b54e80778420e9d49bd174d89afdc2a1130b12 (patch)
tree96ef4be72ba6f72492371a2300d5a07fa4f9aa33
parentf16942a4d85ec81ed7fbac8c83fabe782cdaad89 (diff)
log to var/log/dbcore.log by default
-rw-r--r--apps/couch/src/couch_primary_sup.erl8
-rw-r--r--rel/overlay/etc/default.ini2
-rw-r--r--rel/reltool.config1
3 files changed, 9 insertions, 2 deletions
diff --git a/apps/couch/src/couch_primary_sup.erl b/apps/couch/src/couch_primary_sup.erl
index e822b70a..2aff86ef 100644
--- a/apps/couch/src/couch_primary_sup.erl
+++ b/apps/couch/src/couch_primary_sup.erl
@@ -36,7 +36,13 @@ init([]) ->
permanent,
infinity,
supervisor,
- [couch_rep_sup]}
+ [couch_rep_sup]},
+ {couch_log,
+ {couch_log, start_link, []},
+ permanent,
+ brutal_kill,
+ worker,
+ [couch_log]}
],
{ok, {{one_for_one, 10, 3600}, Children}}.
diff --git a/rel/overlay/etc/default.ini b/rel/overlay/etc/default.ini
index 2c5b4b12..be65f7bc 100644
--- a/rel/overlay/etc/default.ini
+++ b/rel/overlay/etc/default.ini
@@ -28,7 +28,7 @@ backlog = 512
secure_rewrites = true
[log]
-file = /dev/null
+file = {{prefix}}/var/log/dbcore.log
level = info
[metrics]
diff --git a/rel/reltool.config b/rel/reltool.config
index 1a1bfa53..b3386f48 100644
--- a/rel/reltool.config
+++ b/rel/reltool.config
@@ -36,6 +36,7 @@
{overlay_vars, "overlay.config"}.
{overlay, [
+ {mkdir, "var/log"},
{copy, "overlay/bin"},
{copy, "overlay/etc"},
{copy, "overlay/share"},