Skip to content

Commit 7b752f9

Browse files
author
Mark Allen
committed
Add a message about checking mailbox length
1 parent 2f9ce25 commit 7b752f9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎src/lager_manager_killer.erl‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ handle_call(kill_self, #state{killer_hwm=KillerHWM, killer_reinstall_after=Kille
2929
exit({kill_me, [KillerHWM, KillerReinstallAfter]});
3030
handle_call(_Request, State) ->
3131
{ok, ok, State}.
32-
32+
%% It's not the best idea in the world to check the queue length for every
33+
%% log message. We can make this operation work on a poll timer in the
34+
%% future.
3335
handle_event({log, _Message}, State = #state{killer_hwm=KillerHWM, killer_reinstall_after=KillerReinstallAfter}) ->
3436
{message_queue_len, Len} = process_info(self(), message_queue_len),
3537
case Len > KillerHWM of

0 commit comments

Comments
 (0)