Use warning instead of error for version check, closes #2381 (#2382)

This commit is contained in:
José Valim 2023-12-05 09:03:59 +10:00 committed by GitHub
parent 7cf0ed2a08
commit ff40a933a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -88,7 +88,7 @@ defmodule Livebook.UpdateCheck do
schedule_check(state, @day_in_ms)
{:error, error} ->
Logger.error("version check failed, #{error}")
Logger.warning("version check failed, #{error}")
schedule_check(state, @hour_in_ms)
end
@ -96,7 +96,7 @@ defmodule Livebook.UpdateCheck do
end
def handle_info({:DOWN, ref, :process, _pid, reason}, %{request_ref: ref} = state) do
Logger.error("version check failed, reason: #{inspect(reason)}")
Logger.warning("version check failed, reason: #{inspect(reason)}")
{:noreply, %{state | request_ref: nil} |> schedule_check(@hour_in_ms)}
end