Browse Source

Add an update to the global loglevel when a new handler is installed.

This fixes a bug where messages were incorrectly discarded if the new
handler is using log levels that are different from those in use by handlers
that were set up at start-of-day.
pull/114/head
Ewan Mellor 12 years ago
parent
commit
df90ea05cf
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/lager_handler_watcher.erl

+ 1
- 0
src/lager_handler_watcher.erl View File

@ -88,6 +88,7 @@ install_handler(Event, Module, Config) ->
case gen_event:add_sup_handler(Event, Module, Config) of
ok ->
_ = lager:log(debug, self(), "Lager installed handler ~p into ~p", [Module, Event]),
lager:update_loglevel_config(),
ok;
Error ->
%% try to reinstall it later

Loading…
Cancel
Save