From da63e7b251bc48b37aecaf02037a13d8cf1aa0f1 Mon Sep 17 00:00:00 2001 From: Martin Sumner Date: Wed, 13 Nov 2024 13:52:17 +0000 Subject: [PATCH] Result of log should be `ok` --- src/leveled_log.erl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/leveled_log.erl b/src/leveled_log.erl index 756d70b0..4c1d9f12 100644 --- a/src/leveled_log.erl +++ b/src/leveled_log.erl @@ -410,11 +410,11 @@ return_settings() -> %%% Prompt Logs %%%============================================================================ --spec log(atom(), list()) -> term(). +-spec log(atom(), list()) -> ok. log(LogReference, Subs) -> log(LogReference, Subs, ?LOG_LEVELS, ?LOGBASE, backend). --spec log(atom(), list(), list(log_level()), log_base(), atom()) -> term(). +-spec log(atom(), list(), list(log_level()), log_base(), atom()) -> ok. log(LogRef, Subs, SupportedLevels, LogBase, Tag) -> {LogLevel, Log} = maps:get(LogRef, LogBase), LogOpts = get_opts(), @@ -451,13 +451,13 @@ is_active_level([L|_], L, _) -> true; is_active_level([L|_], _, L) -> false; is_active_level([_|T], C, L) -> is_active_level(T, C, L). --spec log_timer(atom(), list(), erlang:timestamp()) -> term(). +-spec log_timer(atom(), list(), erlang:timestamp()) -> ok. log_timer(LogReference, Subs, StartTime) -> log_timer(LogReference, Subs, StartTime, ?LOG_LEVELS, ?LOGBASE, backend). -spec log_timer( atom(), list(), erlang:timestamp(), list(log_level()), log_base(), atom()) - -> term(). + -> ok. log_timer(LogRef, Subs, StartTime, SupportedLevels, LogBase, Tag) -> {LogLevel, Log} = maps:get(LogRef, LogBase), LogOpts = get_opts(),