Skip to content

Commit 1af0793

Browse files
Use Utils.warning/1 instead of Logger.warning/1 (#35)
Update the minimal version of the appsignal dependency to 2.7.4, which is the version that introduces the backwards compatible logging functions in Appsignal.Utils. Then, use Appsignal.Utils.warning/1 in Appsignal.Phoenix.View and Appsignal.Phoenix.EventHandler to support Elixir 1.10 through 1.15.
1 parent fe2a110 commit 1af0793

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
bump: "patch"
3+
type: "fix"
4+
---
5+
6+
Fix Logger deprecation warnings on Elixir 1.15

lib/appsignal_plug.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ defmodule Appsignal.Plug do
3737
use Plug.ErrorHandler
3838

3939
def call(%Plug.Conn{private: %{appsignal_plug_instrumented: true}} = conn, opts) do
40-
Logger.warn(
40+
Appsignal.Utils.warning(
4141
"Appsignal.Plug was included twice, disabling Appsignal.Plug. Please only `use Appsignal.Plug` once."
4242
)
4343

mix.exs

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ defmodule Appsignal.Plug.MixProject do
5858

5959
[
6060
{:plug, plug_version},
61-
{:appsignal, ">= 2.5.1 and < 3.0.0"},
61+
{:appsignal, ">= 2.7.4 and < 3.0.0"},
6262
{:credo, "~> 1.2", only: [:dev, :test], runtime: false},
6363
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false},
6464
{:ex_doc, "~> 0.21", only: :dev, runtime: false},

0 commit comments

Comments
 (0)