diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a3c965..8f1e04d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +- Fix deprecated Elixir `Logger.warn()` to `Logger.warning()`. + ## [0.21.0] - 2022-11-19 ### Fixed diff --git a/lib/config.ex b/lib/config.ex index 773ddc8..4754c48 100644 --- a/lib/config.ex +++ b/lib/config.ex @@ -110,7 +110,7 @@ defmodule Doctor.Config do end defp warn_deprecation(_bool, val) do - Logger.warn(""" + Logger.warning(""" :moduledoc_required in #{Config.config_file()} is a deprecated option. \ Now running with the equivalent :min_overall_moduledoc_coverage #{val} \ but you should replace the deprecated option with the new one to avoid \ diff --git a/lib/reporters/full.ex b/lib/reporters/full.ex index acf2c4e..98875c0 100644 --- a/lib/reporters/full.ex +++ b/lib/reporters/full.ex @@ -122,7 +122,7 @@ defmodule Doctor.Reporters.Full do """ #{ANSI.red()}Doctor validation has failed because: * #{Enum.map_join(errs, ".\n * ", &String.capitalize(&1))}.\ - #{ANSI.reset()})") + #{ANSI.reset()} """ end