Skip to content

Commit

Permalink
Merge pull request #205 from vtm9/main
Browse files Browse the repository at this point in the history
Fix Logger warnings
  • Loading branch information
benwilson512 authored Jan 12, 2024
2 parents ddb0f46 + f66e110 commit 75d28c4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def deps do
end
```

Note: Absinthe.Relay requires Elixir 1.10 or higher.
Note: Absinthe.Relay requires Elixir 1.11 or higher.

## Upgrading

Expand Down
2 changes: 1 addition & 1 deletion lib/absinthe/relay/connection.ex
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ defmodule Absinthe.Relay.Connection do
args
|> Enum.flat_map(fn
{key, _} when key in [:node] ->
Logger.warn("Ignoring additional #{key} provided on edge (overriding is not allowed)")
Logger.warning("Ignoring additional #{key} provided on edge (overriding is not allowed)")
[]

{key, val} ->
Expand Down
4 changes: 2 additions & 2 deletions lib/absinthe/relay/node.ex
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ defmodule Absinthe.Relay.Node do
global_id

{:error, err} ->
Logger.warn(
Logger.warning(
"Failed to translate (#{inspect(node_type)}, #{inspect(source_id)}) to global ID with error: #{err}"
)

Expand Down Expand Up @@ -371,7 +371,7 @@ defmodule Absinthe.Relay.Node do
# Reports a failure to fetch an ID
@spec report_fetch_id_error(type_name :: String.t(), source :: any) :: {:error, String.t()}
defp report_fetch_id_error(type_name, source) do
Logger.warn(@missing_internal_id_error <> " (type #{type_name})")
Logger.warning(@missing_internal_id_error <> " (type #{type_name})")
Logger.debug(inspect(source))
{:error, @missing_internal_id_error}
end
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ defmodule AbsintheRelay.Mixfile do
use Mix.Project

@source_url "https://github.com/absinthe-graphql/absinthe_relay"
@version "1.5.2"
@version "1.5.3"

def project do
[
Expand Down

0 comments on commit 75d28c4

Please sign in to comment.