absinthe_phoenix icon indicating copy to clipboard operation
absinthe_phoenix copied to clipboard

Logger options to Phoenix.Channel

Open fredr opened this issue 6 years ago • 0 comments

It would be great if it was possible to set these logging options for Phoenix.Channel

Right now, since use Phoenix.Channel is done inside Absinthe.Phoenix.Channel there is no way of setting them from what I can see.

A walkaround that feels a bit hacky is to do something like this in the socket connect callback:

  def connect(params, socket) do
      socket = %{
        socket
        | private:
            Map.merge(socket.private, %{
              log_join: false,
              log_handle_in: false
            })
      }

      {:ok, socket}
  end

fredr avatar Nov 28 '19 17:11 fredr