store log opts in pdict + inherit at proc start
This commit is contained in:
parent
fbe200f1ca
commit
d30ca16a17
6 changed files with 65 additions and 19 deletions
|
@ -1061,9 +1061,8 @@ init([Opts]) ->
|
|||
{InkerOpts, PencillerOpts} = set_options(Opts),
|
||||
|
||||
LogLevel = proplists:get_value(log_level, Opts),
|
||||
ok = application:set_env(leveled, log_level, LogLevel),
|
||||
ForcedLogs = proplists:get_value(forced_logs, Opts),
|
||||
ok = application:set_env(leveled, forced_logs, ForcedLogs),
|
||||
leveled_log:save(LogLevel, ForcedLogs),
|
||||
|
||||
ConfiguredCacheSize =
|
||||
max(proplists:get_value(cache_size, Opts), ?MIN_CACHE_SIZE),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue