diff options
-rw-r--r-- | apps/couch/src/couch_primary_sup.erl | 8 | ||||
-rw-r--r-- | rel/overlay/etc/default.ini | 2 | ||||
-rw-r--r-- | rel/reltool.config | 1 |
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"}, |