Skip to content

Logger options to Phoenix.Channel #64

@fredr

Description

@fredr

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions