File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1100,16 +1100,17 @@ filter_config(#{module:=Module}=Config) ->
11001100-spec get_handler_config () -> [Config ] when
11011101 Config :: logger_handler :config ().
11021102get_handler_config () ->
1103- Configs = logger_config :get (? LOGGER_TABLE ),
1104- [filter_config (Config ) || Config <- Configs ].
1103+ Configs0 = logger_config :get (? LOGGER_TABLE ),
1104+ Configs = [filter_config (Config ) || Config <- Configs0 ],
1105+ lists :sort (fun (#{ id := LHS }, #{ id := RHS }) -> LHS =< RHS end , Configs ).
11051106
11061107-doc " Look up the identities for all installed handlers." .
11071108-doc (#{group => <<" Configuration API functions" >>,since => <<" OTP 21.0" >>}).
11081109-spec get_handler_ids () -> [HandlerId ] when
11091110 HandlerId :: logger_handler :id ().
11101111get_handler_ids () ->
11111112 {ok ,#{handlers := HandlerIds }} = logger_config :get (? LOGGER_TABLE ,primary ),
1112- HandlerIds .
1113+ lists : sort ( HandlerIds ) .
11131114
11141115-doc """
11151116Look up the current configuration for the Logger proxy.
You can’t perform that action at this time.
0 commit comments