Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update for new lager

  • Loading branch information...
commit e40956a031a8221ea9ac496b3c95af737ed8a886 1 parent 171542a
@Vagabond authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  rebar.config
  2. +2 −2 src/logbench.erl
View
2  rebar.config
@@ -3,7 +3,7 @@
{cover_enabled, true}.
{deps, [
- {lager, "0.9.*", {git, "git://github.com/basho/lager", {branch, "master"}}},
+ {lager, "1.0.*", {git, "git://github.com/basho/lager", {branch, "master"}}},
{log4erl, "0.9.*", {git, "git://github.com/ahmednawras/log4erl.git", {branch, "master"}}},
{alog, "1", {git, "git://github.com/siberian-fast-food/alogger.git", {branch, "master"}}}
]
View
4 src/logbench.erl
@@ -18,7 +18,7 @@ lager_console({Fmt, Args}) ->
{fun() ->
application:load(lager),
application:set_env(lager, handlers, [{lager_console_backend, info}]),
- application:start(lager)
+ lager:start()
end,
fun() ->
lager:error(Fmt, Args)
@@ -73,7 +73,7 @@ lager_file({Fmt, Args}) ->
{fun() ->
application:load(lager),
application:set_env(lager, handlers, [{lager_file_backend, [{"logs/lager.log", info}]}]),
- application:start(lager)
+ lager:start()
end,
fun() ->
lager:info(Fmt, Args)
Please sign in to comment.
Something went wrong with that request. Please try again.