Skip to content

Commit 3960916

Browse files
authored
Fix calls to deprecated Logger.warn/2 (#94)
1 parent 9bef1d6 commit 3960916

3 files changed

Lines changed: 2 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
include:
18-
- pair:
19-
elixir: 1.10.4
20-
otp: 22.3.4
2118
- pair:
2219
elixir: 1.11.4
2320
otp: 23.2.7

lib/plug/cowboy.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ defmodule Plug.Cowboy do
349349
{timeout, opts} = Keyword.pop(opts, :timeout)
350350

351351
if timeout do
352-
Logger.warn("the :timeout option for Cowboy webserver has no effect and must be removed")
352+
Logger.warning("the :timeout option for Cowboy webserver has no effect and must be removed")
353353
end
354354

355355
opts = Keyword.delete(opts, :otp_app)

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ defmodule Plug.Cowboy.MixProject do
99
[
1010
app: :plug_cowboy,
1111
version: @version,
12-
elixir: "~> 1.10",
12+
elixir: "~> 1.11",
1313
deps: deps(),
1414
package: package(),
1515
description: @description,

0 commit comments

Comments
 (0)