Skip to content
Browse files

Fix #49 some more, thanks awesometown for the heads up

  • Loading branch information...
1 parent f4ebe1f commit bf0a19cc14d0132e28dab9ac42c82e43e85013d6 @Vagabond Vagabond committed Apr 20, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/lager.erl
View
5 src/lager.erl
@@ -128,8 +128,9 @@ trace_file(File, Filter, Level) ->
Res = case lists:member({lager_file_backend, File}, Handlers) of
false ->
%% install the handler
- 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
end,

0 comments on commit bf0a19c

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