Skip to content

Commit

Permalink
Don't use Logger
Browse files Browse the repository at this point in the history
  • Loading branch information
axelson committed Sep 20, 2024
1 parent 4c3297c commit 804c271
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/dialyxir/dialyzer.ex
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
defmodule Dialyxir.Dialyzer do
import Dialyxir.Output
require Logger
alias String.Chars
alias Dialyxir.Formatter
alias Dialyxir.Project
Expand Down Expand Up @@ -79,7 +78,11 @@ defmodule Dialyxir.Dialyzer do
defp parse_formatter("short"), do: Dialyxir.Formatter.Short

defp parse_formatter(unknown) do
Logger.warning("Unrecognized formatter #{unknown} received. Falling back to default.")
warning("""
Unrecognized formatter #{unknown} received. \
Known formatters are dialyzer, dialyxir, github, ignore_file, ignore_file_string, raw, and short. \
Falling back to dialyxir.
""")
@default_formatter
end
end
Expand Down

0 comments on commit 804c271

Please sign in to comment.