Update to goldrush 0.1.5
diff --git a/rebar.config b/rebar.config
index 6809cbb..5fc1896 100644
--- a/rebar.config
+++ b/rebar.config
@@ -2,7 +2,7 @@
{erl_first_files, ["src/lager_util.erl"]}.
{deps, [
{goldrush, ".*",
- {git, "git://github.com/DeadZen/goldrush.git", {tag, "879c69874a"}}}
+ {git, "git://github.com/DeadZen/goldrush.git", {tag, "0.1.5"}}}
]}.
{cover_enabled, true}.
diff --git a/src/lager.app.src b/src/lager.app.src
index 63f35ce..4c7ec71 100644
--- a/src/lager.app.src
+++ b/src/lager.app.src
@@ -7,10 +7,10 @@
{modules, []},
{applications, [
kernel,
- stdlib
+ stdlib,
+ goldrush
]},
{registered, [lager_sup, lager_event, lager_crash_log, lager_handler_watcher_sup]},
- {included_applications, [goldrush]},
{mod, {lager_app, []}},
{env, [
%% What handlers to install with what arguments
diff --git a/test/lager_test_backend.erl b/test/lager_test_backend.erl
index 59590ba..ce43020 100644
--- a/test/lager_test_backend.erl
+++ b/test/lager_test_backend.erl
@@ -109,7 +109,7 @@
has_line_numbers() ->
%% are we R15 or greater
Rel = erlang:system_info(otp_release),
- {match, [Major]} = re:run(Rel, "^R(\\d+)[A|B](|0(\\d))$", [{capture, [1], list}]),
+ {match, [Major]} = re:run(Rel, "^R(\\d+)[A|B](|0(\\d))", [{capture, [1], list}]),
list_to_integer(Major) >= 15.
not_running_test() ->
@@ -555,7 +555,7 @@
application:load(lager),
application:set_env(lager, handlers, [{?MODULE, info}]),
application:set_env(lager, error_logger_redirect, false),
- application:start(lager),
+ lager:start(),
gen_event:call(lager_event, ?MODULE, flush).
cleanup(_) ->