-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Due to elixir-lang/elixir#12879, I've switched to the legacy logger backend from this repo. It works fine – logs output to console as it used to.
Expected behaviour
capture_log should capture log output, so assertions can be run and no output should be visible in the terminal.
Actual behaviour
Tests that use capture_log output logs to the console. The log gets captured and tests pass as they used to. ex_unit docs state that :console log backend is captured, so this kind of makes sense.
Partial solution
# test.exs
config :logger, backends: [:console]
config :logger, :console, []This makes capturing work properly – no output to the console, but also no output from log entries that aren't captured, so some issues might be potentially missed.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels