Skip to content

Commit

Permalink
[Fixed] Logger.warn -> Logger.warning
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyti committed May 20, 2024
1 parent fb13fff commit f671287
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/playwright/channel_owner.ex
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ defmodule Playwright.ChannelOwner do
def init(%{session: session} = owner, _initializer) do
Channel.bind(session, {:guid, owner.guid}, :close, fn event ->
Logger.warn("Closing \#{inspect(event.target)}")
Logger.warning("Closing \#{inspect(event.target)}")
end)
{:ok, %{owner | version: "1.2.3"}}
Expand Down
2 changes: 1 addition & 1 deletion lib/playwright/transport.ex
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ defmodule Playwright.Transport do

# Transport.Driver...
# def handle_info({:DOWN, _ref, :port, port, :normal}, state) do
# Logger.warn("[transport@#{inspect(self())}] Handled :DOWN message from port: #{inspect(port)}")
# Logger.warning("[transport@#{inspect(self())}] Handled :DOWN message from port: #{inspect(port)}")
# {:noreply, state}
# end

Expand Down
4 changes: 2 additions & 2 deletions test/integration/page/screenshot_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ defmodule Page.ScreenshotTest do
test "caputures a screenshot, returning the base64 encoded binary", %{page: page} do
case Page.goto(page, "https://playwright.dev", %{timeout: 5000}) do
{:error, error} ->
Logger.warn("Unabled to reach 'https://playwright.dev' for screenshot test: #{inspect(error)}")
Logger.warning("Unabled to reach 'https://playwright.dev' for screenshot test: #{inspect(error)}")

_ ->
max_frame_size = 32_768
Expand All @@ -34,7 +34,7 @@ defmodule Page.ScreenshotTest do

case Page.goto(page, "https://playwright.dev", %{timeout: 5000}) do
{:error, error} ->
Logger.warn("Unabled to reach 'https://playwright.dev' for screenshot test: #{inspect(error)}")
Logger.warning("Unabled to reach 'https://playwright.dev' for screenshot test: #{inspect(error)}")

_ ->
Page.screenshot(page, %{
Expand Down
2 changes: 1 addition & 1 deletion test/support/test_case.ex
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ defmodule Playwright.TestCase do
require Logger

def log_element_handle_error do
Logger.warn("""
Logger.warning("""
The use of ElementHandle is discouraged in favor of Locator.
Timeouts indicate an issue within Playwright.
""")
Expand Down
2 changes: 1 addition & 1 deletion test/support/unit_test.ex
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ defmodule Playwright.UnitTest do
require Logger

defp pass(other) do
Logger.warn("pass/1 not implemented for: #{inspect(other)}")
Logger.warning("pass/1 not implemented for: #{inspect(other)}")
assert true
end
end
Expand Down

0 comments on commit f671287

Please sign in to comment.