Skip to content

Commit

Permalink
chore: Logger.warn to Logger.warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mnishiguchi authored and fhunleth committed Jun 10, 2023
1 parent 1f7958f commit 8ff33c0
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions lib/vintage_net_mobile/cell_monitor.ex
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ defmodule VintageNetMobile.CellMonitor do
end

defp creg_response_to_registration(malformed) do
Logger.warn("Unexpected AT+CREG? response: #{inspect(malformed)}")
Logger.warning("Unexpected AT+CREG? response: #{inspect(malformed)}")
%{stat: :invalid, lac: 0, ci: 0, act: 0}
end

Expand All @@ -157,7 +157,7 @@ defmodule VintageNetMobile.CellMonitor do
end

defp qspn_response_to_network(malformed) do
Logger.warn("Unexpected AT+QSPN response: #{inspect(malformed)}")
Logger.warning("Unexpected AT+QSPN response: #{inspect(malformed)}")
%{network_name: "", mcc: 0, mnc: 0}
end

Expand All @@ -167,7 +167,7 @@ defmodule VintageNetMobile.CellMonitor do
end

defp qnwinfo_response_to_info(malformed) do
Logger.warn("Unexpected AT+QNWINFO response: #{inspect(malformed)}")
Logger.warning("Unexpected AT+QNWINFO response: #{inspect(malformed)}")
%{act: "UNKNOWN", band: "", channel: 0}
end

Expand Down
8 changes: 4 additions & 4 deletions lib/vintage_net_mobile/ex_chat.ex
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ defmodule VintageNetMobile.ExChat do
:ok

error ->
Logger.warn("Send #{inspect(command)} failed: #{inspect(error)}. Ignoring...")
Logger.warning("Send #{inspect(command)} failed: #{inspect(error)}. Ignoring...")
:ok
end
end
Expand Down Expand Up @@ -119,7 +119,7 @@ defmodule VintageNetMobile.ExChat do
{:noreply, state}

{:error, error} ->
Logger.warn("vintage_net_mobile: can't open #{state.tty_name}: #{inspect(error)}")
Logger.warning("vintage_net_mobile: can't open #{state.tty_name}: #{inspect(error)}")
Process.sleep(@error_delay)
{:stop, :tty_error, state}
end
Expand Down Expand Up @@ -149,12 +149,12 @@ defmodule VintageNetMobile.ExChat do

@impl GenServer
def handle_info({:circuits_uart, tty_name, {:partial, fragment}}, state) do
Logger.warn("vintage_net_mobile: dropping junk from #{tty_name}: #{inspect(fragment)}")
Logger.warning("vintage_net_mobile: dropping junk from #{tty_name}: #{inspect(fragment)}")
{:noreply, state}
end

def handle_info({:circuits_uart, tty_name, {:error, error}}, state) do
Logger.warn("vintage_net_mobile: error from #{tty_name}: #{inspect(error)}")
Logger.warning("vintage_net_mobile: error from #{tty_name}: #{inspect(error)}")
Process.sleep(@error_delay)
{:stop, :tty_error, state}
end
Expand Down
2 changes: 1 addition & 1 deletion lib/vintage_net_mobile/modem/quectel_BG96.ex
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ defmodule VintageNetMobile.Modem.QuectelBG96 do
end

defp linux_warning() do
Logger.warn(
Logger.warning(
"VintageNetMobile is broken on Linux 5.4.53+ when using Quectel modems unless you revert https://github.com/torvalds/linux/commit/2bb70f0a4b238323e4e2f392fc3ddeb5b7208c9e"
)
end
Expand Down
4 changes: 2 additions & 2 deletions lib/vintage_net_mobile/modem_info.ex
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ defmodule VintageNetMobile.ModemInfo do
end

defp iccid_response_to_qccid(anything_else) do
Logger.warn("Unexpected AT+QCCID response: #{inspect(anything_else)}")
Logger.warning("Unexpected AT+QCCID response: #{inspect(anything_else)}")
@unknown
end

Expand All @@ -85,7 +85,7 @@ defmodule VintageNetMobile.ModemInfo do
end

defp cimi_response_to_imsi(anything_else) do
Logger.warn("Unexpected AT+CIMI response: #{inspect(anything_else)}")
Logger.warning("Unexpected AT+CIMI response: #{inspect(anything_else)}")
@unknown
end

Expand Down
2 changes: 1 addition & 1 deletion lib/vintage_net_mobile/signal_monitor.ex
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ defmodule VintageNetMobile.SignalMonitor do
end

defp csq_response_to_rssi(anything_else) do
Logger.warn("Unexpected AT+CSQ response: #{inspect(anything_else)}")
Logger.warning("Unexpected AT+CSQ response: #{inspect(anything_else)}")
@rssi_unknown
end

Expand Down

0 comments on commit 8ff33c0

Please sign in to comment.