Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit 7815a88c558d539d4c80c901d75f19c4ebd9367b 1 parent bf0a19c
Andrew Thompson authored April 23, 2012

Showing 1 changed file with 4 additions and 5 deletions. Show diff stats Hide diff stats

  1. 9  src/lager.erl
9  src/lager.erl
@@ -128,14 +128,13 @@ trace_file(File, Filter, Level) ->
128 128
             Res = case lists:member({lager_file_backend, File}, Handlers) of
129 129
                 false ->
130 130
                     %% install the handler
131  
-                    {ok, _} = supervisor:start_child(lager_handler_watcher_sup,
132  
-                      [lager_event, {lager_file_backend, File}, {File, none}]),
133  
-                    ok;
  131
+                    supervisor:start_child(lager_handler_watcher_sup,
  132
+                        [lager_event, {lager_file_backend, File}, {File, none}]);
134 133
                 _ ->
135  
-                    ok
  134
+                    {ok, exists}
136 135
             end,
137 136
             case Res of
138  
-              ok ->
  137
+              {ok, _} ->
139 138
                 %% install the trace.
140 139
                 {MinLevel, Traces} = lager_mochiglobal:get(loglevel),
141 140
                 case lists:member(Trace, Traces) of

0 notes on commit 7815a88

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