Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logger options to Phoenix.Channel #64

Open
fredr opened this issue Nov 28, 2019 · 0 comments
Open

Logger options to Phoenix.Channel #64

fredr opened this issue Nov 28, 2019 · 0 comments

Comments

@fredr
Copy link

fredr commented Nov 28, 2019

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant