Commit 66869e2d authored by Mark Allen's avatar Mark Allen
Browse files

Start traces after extra sinks are started

Previously, if you configured a trace to use an
extra sink, you'd get a noproc error. Addresses
issue #296 on github.
parent 7177cb07
Showing with 2 additions and 1 deletion
+2 -1
......@@ -208,7 +208,6 @@ start(_StartType, _StartArgs) ->
start_handlers(?DEFAULT_SINK,
get_env(lager, handlers, ?DEFAULT_HANDLER_CONF)),
ok = add_configured_traces(),
lager:update_loglevel_config(?DEFAULT_SINK),
......@@ -223,6 +222,8 @@ start(_StartType, _StartArgs) ->
%% Now handle extra sinks
configure_extra_sinks(get_env(lager, extra_sinks, [])),
ok = add_configured_traces(),
clean_up_config_checks(),
{ok, Pid, SavedHandlers}.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment