diff --git a/lib/scenic/assets/static.ex b/lib/scenic/assets/static.ex index 02c4ecfe..1d0d923a 100644 --- a/lib/scenic/assets/static.ex +++ b/lib/scenic/assets/static.ex @@ -452,7 +452,7 @@ defmodule Scenic.Assets.Static do |> Path.join(Static.dst_dir()) rescue e -> - Logger.warn( + Logger.warning( "'use Scenic.Assets.Static' requires a valid :otp_app option. Received otp_app #{opts[:otp_app]}" ) @@ -583,7 +583,7 @@ defmodule Scenic.Assets.Static do assign(lib, :aliases, new_alias, hash) _ -> - Logger.warn("Attempted to alias #{inspect(new_alias)} to unknown asset: #{inspect(to)}") + Logger.warning("Attempted to alias #{inspect(new_alias)} to unknown asset: #{inspect(to)}") lib end end diff --git a/lib/scenic/component/input/checkbox.ex b/lib/scenic/component/input/checkbox.ex index aed368a5..4c91d1c0 100644 --- a/lib/scenic/component/input/checkbox.ex +++ b/lib/scenic/component/input/checkbox.ex @@ -315,7 +315,7 @@ defmodule Scenic.Component.Input.Checkbox do end def handle_put(v, %{assigns: %{id: id}} = scene) do - Logger.warn( + Logger.warning( "Attempted to put an invalid value on Checkbox id: #{inspect(id)}, value: #{inspect(v)}" ) diff --git a/lib/scenic/component/input/dropdown.ex b/lib/scenic/component/input/dropdown.ex index 4a767975..6dc8dfb4 100644 --- a/lib/scenic/component/input/dropdown.ex +++ b/lib/scenic/component/input/dropdown.ex @@ -678,7 +678,7 @@ defmodule Scenic.Component.Input.Dropdown do scene = case Enum.find(items, fn {_, id} -> id == s_id end) do nil -> - Logger.warn( + Logger.warning( "Attempted to put an invalid value on Dropdown id: #{inspect(id)}, value: #{inspect(s_id)}" ) @@ -709,7 +709,7 @@ defmodule Scenic.Component.Input.Dropdown do end def handle_put(v, %{assigns: %{id: id}} = scene) do - Logger.warn( + Logger.warning( "Attempted to put an invalid value on Dropdown id: #{inspect(id)}, value: #{inspect(v)}" ) diff --git a/lib/scenic/component/input/radio_button.ex b/lib/scenic/component/input/radio_button.ex index 42e0bf1e..66181092 100644 --- a/lib/scenic/component/input/radio_button.ex +++ b/lib/scenic/component/input/radio_button.ex @@ -302,7 +302,7 @@ defmodule Scenic.Component.Input.RadioButton do end def handle_put(v, %{assigns: %{id: id}} = scene) do - Logger.warn( + Logger.warning( "Attempted to put an invalid value on Radio Button id: #{inspect(id)}, value: #{inspect(v)}" ) diff --git a/lib/scenic/component/input/radio_group.ex b/lib/scenic/component/input/radio_group.ex index 66f4cae5..f188bf61 100644 --- a/lib/scenic/component/input/radio_group.ex +++ b/lib/scenic/component/input/radio_group.ex @@ -267,7 +267,7 @@ defmodule Scenic.Component.Input.RadioGroup do scene = case Enum.find(items, fn {_, id} -> id == value end) do nil -> - Logger.warn( + Logger.warning( "Attempted to put an invalid value on Radio Group id: #{inspect(id)}, value: #{inspect(value)}" ) @@ -284,7 +284,7 @@ defmodule Scenic.Component.Input.RadioGroup do end def handle_put(v, %{assigns: %{id: id}} = scene) do - Logger.warn( + Logger.warning( "Attempted to put an invalid value on Dropdown id: #{inspect(id)}, value: #{inspect(v)}" ) diff --git a/lib/scenic/component/input/slider.ex b/lib/scenic/component/input/slider.ex index fe511735..f27ce11e 100644 --- a/lib/scenic/component/input/slider.ex +++ b/lib/scenic/component/input/slider.ex @@ -392,7 +392,7 @@ defmodule Scenic.Component.Input.Slider do scene = case Enum.member?(extents, value) do false -> - Logger.warn( + Logger.warning( "Attempted to put an invalid value on Slider id: #{inspect(id)}, value: #{inspect(value)}" ) @@ -444,7 +444,7 @@ defmodule Scenic.Component.Input.Slider do end def handle_put(v, %{assigns: %{id: id}} = scene) do - Logger.warn( + Logger.warning( "Attempted to put an invalid value on Slider id: #{inspect(id)}, value: #{inspect(v)}" ) diff --git a/lib/scenic/component/input/text_field.ex b/lib/scenic/component/input/text_field.ex index 1563476b..a410760b 100644 --- a/lib/scenic/component/input/text_field.ex +++ b/lib/scenic/component/input/text_field.ex @@ -775,7 +775,7 @@ defmodule Scenic.Component.Input.TextField do end def handle_put(v, %{assigns: %{id: id}} = scene) do - Logger.warn( + Logger.warning( "Attempted to put an invalid value on TextField id: #{inspect(id)}, value: #{inspect(v)}" ) diff --git a/lib/scenic/component/input/toggle.ex b/lib/scenic/component/input/toggle.ex index 9c0aa0cd..a114c58b 100644 --- a/lib/scenic/component/input/toggle.ex +++ b/lib/scenic/component/input/toggle.ex @@ -373,7 +373,7 @@ defmodule Scenic.Component.Input.Toggle do end def handle_put(v, %{assigns: %{id: id}} = scene) do - Logger.warn( + Logger.warning( "Attempted to put an invalid value on Toggle id: #{inspect(id)}, value: #{inspect(v)}" ) diff --git a/lib/scenic/driver.ex b/lib/scenic/driver.ex index 7e08235a..2fb2b177 100644 --- a/lib/scenic/driver.ex +++ b/lib/scenic/driver.ex @@ -408,7 +408,7 @@ defmodule Scenic.Driver do %Driver{input_limited: true, input_buffer: buffer} = driver, {class, _} = input ) do - # Logger.warn( "input_limited #{inspect({input})}" ) + # Logger.warning( "input_limited #{inspect({input})}" ) case class do :cursor_pos -> %{driver | input_buffer: Map.put(buffer, class, input)} :cursor_scroll -> %{driver | input_buffer: Map.put(buffer, class, input)} @@ -421,7 +421,7 @@ defmodule Scenic.Driver do %Driver{limit_ms: limit_ms} = driver, {class, _} = input ) do - # Logger.warn( "input #{inspect({input})}" ) + # Logger.warning( "input #{inspect({input})}" ) case class do :cursor_pos -> Process.send_after(self(), @input_limiter, limit_ms) diff --git a/lib/scenic/scene.ex b/lib/scenic/scene.ex index 0f13fb39..5ee9c0b5 100644 --- a/lib/scenic/scene.ex +++ b/lib/scenic/scene.ex @@ -595,7 +595,7 @@ defmodule Scenic.Scene do _ -> # invalid data. log a warning - Logger.warn( + Logger.warning( "Attempted to update component with invalid data. id: #{inspect(id)}, data: #{inspect(new_value)}" )