From b29710406ecc06e996831e636d0b302196095d0a Mon Sep 17 00:00:00 2001 From: Andrew Thompson Date: Fri, 8 Nov 2013 15:57:04 -0500 Subject: [PATCH] Update to goldrush 0.1.5 --- rebar.config | 2 +- src/lager.app.src | 4 ++-- test/lager_test_backend.erl | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) 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 @@ print_bad_state() -> 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 @@ setup() -> 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(_) ->