From fb0064824bd58f70ede68dee40ffc4d7acd32559 Mon Sep 17 00:00:00 2001 From: "Brian L. Troutwine" Date: Fri, 18 Mar 2016 17:54:52 -0700 Subject: [PATCH] Correct removal of reinstall_handler. Signed-off-by: Brian L. Troutwine --- src/lager_handler_watcher.erl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lager_handler_watcher.erl b/src/lager_handler_watcher.erl index 336ee06..3d13cd3 100644 --- a/src/lager_handler_watcher.erl +++ b/src/lager_handler_watcher.erl @@ -80,6 +80,9 @@ handle_info({gen_event_EXIT, Module, Reason}, #state{module=Module, ok end, {noreply, State}; +handle_info(reinstall_handler, #state{module=Module, config=Config, sink=Sink} = State) -> + install_handler(Sink, Module, Config), + {noreply, State}; handle_info(reboot, State) -> lager_app:boot(), {noreply, State};