Skip to content

Commit

Permalink
Fix the Fix for the Fix for #49, thanks to Kostis for keeping me honest
Browse files Browse the repository at this point in the history
  • Loading branch information
Vagabond committed Apr 23, 2012
1 parent bf0a19c commit 7815a88
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/lager.erl
Expand Up @@ -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
Expand Down

0 comments on commit 7815a88

Please sign in to comment.