Przeglądaj źródła

Default crash log entries to be a maxmimum of 64k

pull/4/merge
Andrew Thompson 14 lat temu
rodzic
commit
fbb0fda5d3
2 zmienionych plików z 3 dodań i 3 usunięć
  1. +2
    -2
      src/lager.app.src
  2. +1
    -1
      src/lager_sup.erl

+ 2
- 2
src/lager.app.src Wyświetl plik

@ -22,8 +22,8 @@
]},
%% Whether to write a crash log, and where. Undefined means no crash logger.
{crash_log, "log/crash.log"},
%% Maximum size in bytes of events in the crash log - defaults to 4096
{crash_log_size, 4096},
%% Maximum size in bytes of events in the crash log - defaults to 65536
{crash_log_size, 65536},
%% Whether to redirect error_logger messages into lager - defaults to true
{error_logger_redirect, true}
]}

+ 1
- 1
src/lager_sup.erl Wyświetl plik

@ -43,7 +43,7 @@ init([]) ->
{ok, File} ->
MaxBytes = case application:get_env(lager, crash_log_size) of
{ok, Val} -> Val;
_ -> 4096
_ -> 65536
end,
[{lager_crash_log, {lager_crash_log, start_link, [File, MaxBytes]},
permanent, 5000, worker, [lager_crash_log]}];

Ładowanie…
Anuluj
Zapisz