diff --git a/lib/grpc/server/adapters/cowboy/handler.ex b/lib/grpc/server/adapters/cowboy/handler.ex index f0f5641b..e7b7355e 100644 --- a/lib/grpc/server/adapters/cowboy/handler.ex +++ b/lib/grpc/server/adapters/cowboy/handler.ex @@ -167,7 +167,7 @@ defmodule GRPC.Server.Adapters.Cowboy.Handler do {:ok, req, state} catch :exit, :timeout -> - Logger.warn("Timeout when reading full body") + Logger.warning("Timeout when reading full body") info({:handling_timeout, self()}, req, state) end @@ -458,7 +458,7 @@ defmodule GRPC.Server.Adapters.Cowboy.Handler do defp extract_subtype("application/grpc-web-text+" <> rest), do: {:ok, rest} defp extract_subtype(type) do - Logger.warn("Got unknown content-type #{type}, please create an issue.") + Logger.warning("Got unknown content-type #{type}, please create an issue.") {:ok, "proto"} end diff --git a/lib/grpc/server/supervisor.ex b/lib/grpc/server/supervisor.ex index d2dad540..69bcbd02 100644 --- a/lib/grpc/server/supervisor.ex +++ b/lib/grpc/server/supervisor.ex @@ -107,7 +107,7 @@ defmodule GRPC.Server.Supervisor do {endpoint, endpoint.__meta__(:servers)} rescue FunctionClauseError -> - Logger.warn( + Logger.warning( "deprecated: servers as argument of GRPC.Server.Supervisor, please use GRPC.Endpoint" ) diff --git a/lib/grpc/transport/http2.ex b/lib/grpc/transport/http2.ex index dd0eea40..8831584c 100644 --- a/lib/grpc/transport/http2.ex +++ b/lib/grpc/transport/http2.ex @@ -93,7 +93,7 @@ defmodule GRPC.Transport.HTTP2 do end defp append_encoding(headers, grpc_encoding) when is_binary(grpc_encoding) do - Logger.warn("grpc_encoding option is deprecated, please use compressor.") + Logger.warning("grpc_encoding option is deprecated, please use compressor.") [{"grpc-encoding", grpc_encoding} | headers] end diff --git a/test/support/integration_test_case.ex b/test/support/integration_test_case.ex index 484342f9..4a4dbe9a 100644 --- a/test/support/integration_test_case.ex +++ b/test/support/integration_test_case.ex @@ -37,7 +37,7 @@ defmodule GRPC.Integration.TestCase do result {:error, :eaddrinuse} -> - Logger.warn("Got eaddrinuse when reconnecting to #{server}:#{port}. retry: #{retry}") + Logger.warning("Got eaddrinuse when reconnecting to #{server}:#{port}. retry: #{retry}") if retry >= 1 do Process.sleep(500)