 defmodule Phoenix.Channel.Server do
   use GenServer
-  require Logger
   alias Phoenix.PubSub
 
   @moduledoc """

    GenServer.start_link(__MODULE__, [socket, auth_payload])
  end

  def init([socket, auth_payload]) do
    case socket.channel.join(socket.topic, auth_payload, socket) do
      {:ok, socket} ->

      :ignore -> :ignore

      result ->
        {:stop, {:badarg, result}}
    end
  end
