summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbenoitc <bchesneau@gmail.com>2014-02-12 00:38:27 +0100
committerbenoitc <bchesneau@gmail.com>2014-02-12 00:38:27 +0100
commit0163e23276e636c43ea754efb424b43ee8462395 (patch)
tree8e1c7b4aa6bb2030398e6d4af90154e265fee392
parentdae92514b7d046016a20ce7087cb3bba52582fa0 (diff)
downloadcouchdb-0163e23276e636c43ea754efb424b43ee8462395.tar.gz
couch_log: be less invasive when using parse_transform
Noticed when running tests vi travis-ci, jiffy doesn't like too much lager and the build hangs. So instead to compile all modules with the parse transform, only do it for couch_log. This is the only place where we really need it anyway.
-rw-r--r--apps/couch/src/couch_log.erl2
-rw-r--r--rebar.config3
2 files changed, 3 insertions, 2 deletions
diff --git a/apps/couch/src/couch_log.erl b/apps/couch/src/couch_log.erl
index 6cf04f4f5..82158f6ed 100644
--- a/apps/couch/src/couch_log.erl
+++ b/apps/couch/src/couch_log.erl
@@ -14,6 +14,8 @@
-behaviour(gen_server).
+-compile([{parse_transform, lager_transform}]).
+
% public API
-export([start_link/0, stop/0]).
-export([debug/2, info/2, warn/2, error/2]).
diff --git a/rebar.config b/rebar.config
index f3d5b147e..81f7e487f 100644
--- a/rebar.config
+++ b/rebar.config
@@ -4,8 +4,7 @@
{cover_enabled, true}.
{eunit_opts, [{report,{eunit_surefire,[{dir,"."}]}}]}.
{edoc_opts, [{preprocess, true}]}.
-{erl_opts, [debug_info, fail_on_warning,
- {parse_transform, lager_transform}]}.
+{erl_opts, [debug_info, fail_on_warning]}.
{require_otp_vsn, "R14B04|R15|R16"}.