Skip to content

Commit f3d9018

Browse files
committed
Fix check_level when matching loggers are found
1 parent a13e81b commit f3d9018

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/fastlog.erl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ check_level(Name) ->
116116
%% we don't fall over if the logger isn't there...
117117
{none, Loggers};
118118
Items ->
119-
lists:zip(Items, lists:map(fun get_level/1, Items))
119+
Names = [ N || {N,_,_,_} <- Items ],
120+
lists:zip(Items, lists:map(fun get_level/1, Names))
120121
end.
121122

122123
%% @doc Sets the current log level for the top level logger

0 commit comments

Comments
 (0)