Permalink
Browse files

Update for new lager

  • Loading branch information...
Vagabond committed Jun 29, 2012
1 parent 171542a commit e40956a031a8221ea9ac496b3c95af737ed8a886
Showing with 3 additions and 3 deletions.
  1. +1 −1 rebar.config
  2. +2 −2 src/logbench.erl
View
@@ -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
@@ -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)

0 comments on commit e40956a

Please sign in to comment.