From 3960916cf06b94934d77f144a94dc1edc7a7801c Mon Sep 17 00:00:00 2001 From: Artem Solomatin Date: Wed, 28 Jun 2023 10:45:24 +0300 Subject: [PATCH] Fix calls to deprecated Logger.warn/2 (#94) --- .github/workflows/ci.yml | 3 --- lib/plug/cowboy.ex | 2 +- mix.exs | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6ed8346..cbdbf67 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,9 +15,6 @@ jobs: fail-fast: false matrix: include: - - pair: - elixir: 1.10.4 - otp: 22.3.4 - pair: elixir: 1.11.4 otp: 23.2.7 diff --git a/lib/plug/cowboy.ex b/lib/plug/cowboy.ex index 96d862e..b3e7a3f 100644 --- a/lib/plug/cowboy.ex +++ b/lib/plug/cowboy.ex @@ -349,7 +349,7 @@ defmodule Plug.Cowboy do {timeout, opts} = Keyword.pop(opts, :timeout) if timeout do - Logger.warn("the :timeout option for Cowboy webserver has no effect and must be removed") + Logger.warning("the :timeout option for Cowboy webserver has no effect and must be removed") end opts = Keyword.delete(opts, :otp_app) diff --git a/mix.exs b/mix.exs index 209488d..3b685bf 100644 --- a/mix.exs +++ b/mix.exs @@ -9,7 +9,7 @@ defmodule Plug.Cowboy.MixProject do [ app: :plug_cowboy, version: @version, - elixir: "~> 1.10", + elixir: "~> 1.11", deps: deps(), package: package(), description: @description,