From b88e95ea42bb4526dc074a31698ed4bc72bdaa67 Mon Sep 17 00:00:00 2001 From: "John R. Daily" Date: Mon, 23 Mar 2015 13:44:57 -0400 Subject: [PATCH] macro ftw --- src/lager_config.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lager_config.erl b/src/lager_config.erl index cf2c793..e2a7a80 100644 --- a/src/lager_config.erl +++ b/src/lager_config.erl @@ -43,7 +43,7 @@ new() -> %% use insert_new here so that if we're in an appup we don't mess anything up %% %% until lager is completely started, allow all messages to go through - ets:insert_new(?TBL, {{lager_event, loglevel}, {element(2, lager_util:config_to_mask(debug))}}), + ets:insert_new(?TBL, {{?DEFAULT_SINK, loglevel}, {element(2, lager_util:config_to_mask(debug))}}), %% Need to be able to find the `lager_handler_watcher' for all handlers ets:insert_new(?TBL, {{?GLOBAL, handlers}, []}), ok.