diff --git a/CHANGELOG.md b/CHANGELOG.md index d532c86..866aab1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## Unreleased + +- drop support for Elixir < v1.16 +- [allow](https://github.com/sasa1977/site_encrypt/pull/63) all `Logger.levels()` in `:log_level` option + ## 0.6.0 **Breaking**: changed the endpoint setup. Previously the client code had to configure https via the `Phoenix.Endpoint.init/2` callback. However, this callback is deprecated in the latest Phoenix, which now favours passing endpoint options via an argument to `start_link/1` (or `child_spec/1`). This style was previously not supported by site_encrypt. diff --git a/lib/site_encrypt.ex b/lib/site_encrypt.ex index f697859..e6aa0ad 100644 --- a/lib/site_encrypt.ex +++ b/lib/site_encrypt.ex @@ -114,7 +114,7 @@ defmodule SiteEncrypt do """ ], log_level: [ - type: {:in, [:debug, :info, :warn, :error]}, + type: {:in, Logger.levels()}, default: :info, doc: "Logger level for info messages." ], diff --git a/mix.exs b/mix.exs index a6f2c9c..304486d 100644 --- a/mix.exs +++ b/mix.exs @@ -7,7 +7,7 @@ defmodule SiteEncrypt.MixProject do [ app: :site_encrypt, version: @version, - elixir: "~> 1.10", + elixir: "~> 1.16", start_permanent: Mix.env() == :prod, deps: deps(), dialyzer: [