Browse Source

Adjust the supervisor restart thresholds to 10 restarts in 1 minute

pull/4/head
Andrew Thompson 14 years ago
parent
commit
338ca9cf15
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      src/lager_handler_watcher_sup.erl
  2. +1
    -1
      src/lager_sup.erl

+ 1
- 1
src/lager_handler_watcher_sup.erl View File

@ -32,7 +32,7 @@ start_link() ->
supervisor:start_link({local, ?MODULE}, ?MODULE, []).
init([]) ->
{ok, {{simple_one_for_one, 1000, 3600},
{ok, {{simple_one_for_one, 10, 60},
[
{lager_handler_watcher, {lager_handler_watcher, start_link, []},
transient, 5000, worker, [lager_handler_watcher]}

+ 1
- 1
src/lager_sup.erl View File

@ -51,6 +51,6 @@ init([]) ->
[]
end,
{ok, {{one_for_one, 1000, 3600},
{ok, {{one_for_one, 10, 60},
Children ++ Crash
}}.

Loading…
Cancel
Save