absinthe_phoenix
absinthe_phoenix copied to clipboard
Logger options to Phoenix.Channel
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