Closed lukaszsamson closed 1 year ago
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [jit]
Elixir 1.15.0-rc.0 (d673191) (compiled with Erlang/OTP 25)
macOS
Tests with deprecated log level :warn no longer catch anything, capture_log returns empty string
:warn
capture_log
assert capture_log([level: :warn], fn -> Logger.warn("ABC") Logger.warning("ABC") end) =~ "ABC"
Logger - error: {removed_failing_handler,'Elixir.ExUnit.CaptureServer'}
capture_log should work and emit a warning
Fix incoming in 3.
@josevalim oops I just sent a PR 😅
Elixir and Erlang/OTP versions
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [jit]
Elixir 1.15.0-rc.0 (d673191) (compiled with Erlang/OTP 25)
Operating system
macOS
Current behavior
Tests with deprecated log level
:warn
no longer catch anything,capture_log
returns empty stringExpected behavior
capture_log
should work and emit a warning