Skip to content
Browse files

Fix the Fix for the Fix for #49, thanks to Kostis for keeping me honest

  • Loading branch information...
1 parent bf0a19c commit 7815a88c558d539d4c80c901d75f19c4ebd9367b @Vagabond Vagabond committed Apr 23, 2012
Showing with 4 additions and 5 deletions.
  1. +4 −5 src/lager.erl
View
9 src/lager.erl
@@ -128,14 +128,13 @@ trace_file(File, Filter, Level) ->
Res = case lists:member({lager_file_backend, File}, Handlers) of
false ->
%% install the handler
- {ok, _} = supervisor:start_child(lager_handler_watcher_sup,
- [lager_event, {lager_file_backend, File}, {File, none}]),
- ok;
+ supervisor:start_child(lager_handler_watcher_sup,
+ [lager_event, {lager_file_backend, File}, {File, none}]);
_ ->
- ok
+ {ok, exists}
end,
case Res of
- ok ->
+ {ok, _} ->
%% install the trace.
{MinLevel, Traces} = lager_mochiglobal:get(loglevel),
case lists:member(Trace, Traces) of

0 comments on commit 7815a88

Please sign in to comment.
Something went wrong with that request. Please try again.