websocket handler: Do not log client ping frames as errors

This commit is contained in:
rinpatch 2020-09-10 13:47:53 +03:00
parent 9d20d29a79
commit cb06e98da2
1 changed files with 3 additions and 1 deletions

View File

@ -64,7 +64,9 @@ defmodule Pleroma.Web.MastodonAPI.WebsocketHandler do
{:ok, %{state | timer: timer()}}
end
# We never receive messages.
# We only receive pings for now
def websocket_handle(:ping, state), do: {:ok, state}
def websocket_handle(frame, state) do
Logger.error("#{__MODULE__} received frame: #{inspect(frame)}")
{:ok, state}