Initial support for OTP 26 (#395)
* Initial support for OTP 26 * Extend timeout in test
This commit is contained in:
parent
3d3d284805
commit
7509191466
19 changed files with 273 additions and 258 deletions
|
@ -5,8 +5,6 @@
|
|||
|
||||
-include("include/leveled.hrl").
|
||||
|
||||
-include_lib("eunit/include/eunit.hrl").
|
||||
|
||||
-export([log/2,
|
||||
log_timer/3,
|
||||
log_randomtimer/4]).
|
||||
|
@ -401,9 +399,6 @@ log(LogRef, Subs, SupportedLogLevels) ->
|
|||
ok
|
||||
end.
|
||||
|
||||
should_i_log(LogLevel, Levels, LogRef) ->
|
||||
should_i_log(LogLevel, Levels, LogRef, get_opts()).
|
||||
|
||||
should_i_log(LogLevel, Levels, LogRef, LogOpts) ->
|
||||
#log_options{log_level = CurLevel, forced_logs = ForcedLogs} = LogOpts,
|
||||
case lists:member(LogRef, ForcedLogs) of
|
||||
|
@ -494,6 +489,11 @@ duration_text(StartTime) ->
|
|||
|
||||
-ifdef(TEST).
|
||||
|
||||
-include_lib("eunit/include/eunit.hrl").
|
||||
|
||||
should_i_log(LogLevel, Levels, LogRef) ->
|
||||
should_i_log(LogLevel, Levels, LogRef, get_opts()).
|
||||
|
||||
format_time({{Y, M, D}, {H, Mi, S, Ms}}) ->
|
||||
io_lib:format("~b-~2..0b-~2..0b", [Y, M, D]) ++ "T" ++
|
||||
io_lib:format("~2..0b:~2..0b:~2..0b.~3..0b", [H, Mi, S, Ms]).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue