Github user jaydoane commented on a diff in the pull request:

    
https://github.com/apache/couchdb-couch-log-lager/pull/2#discussion_r56443141
  
    --- Diff: src/couch_log_lager.erl ---
    @@ -64,10 +64,9 @@ emergency(Fmt, Args) ->
     
     -spec set_level(atom()) -> ok.
     set_level(Level) ->
    -    {ok, Handlers} = application:get_env(lager, handlers),
    -    lists:foreach(fun({Handler, _}) ->
    -        lager:set_loglevel(Handler, Level)
    -    end, Handlers).
    +    Handlers = gen_event:which_handlers(lager_event),
    +    [ok = lager:set_loglevel(Handler, Level) || Handler <- Handlers],
    --- End diff --
    
    Updated to keep foreach


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to