fix(emqx_logger): fix spec for set_log_level

This commit is contained in:
Stefan Strigler 2023-04-25 18:07:50 +02:00
parent b6c7e55348
commit d920f415cd
1 changed files with 1 additions and 1 deletions

View File

@ -237,7 +237,7 @@ set_log_handler_level(HandlerId, Level) ->
end.
%% @doc Set both the primary and all handlers level in one command
-spec set_log_level(logger:handler_id()) -> ok | {error, term()}.
-spec set_log_level(logger:level()) -> ok | {error, term()}.
set_log_level(Level) ->
case set_primary_log_level(Level) of
ok -> set_all_log_handlers_level(Level);