Skip to content

Commit

Permalink
Merge pull request #63 from ruslandoga/more-log-levels
Browse files Browse the repository at this point in the history
allow new log levels
  • Loading branch information
sasa1977 authored Jun 19, 2024
2 parents 6fba337 + 827ca5f commit 792396d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion lib/site_encrypt.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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."
],
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down

0 comments on commit 792396d

Please sign in to comment.