require Logger

defmodule OAuth2Example.PageController do
  use OAuth2Example.Web, :controller

  plug :action

  def index(conn, _params) do
    Logger.info "Displaying index page"
    render conn, "index.html"
  end
end

require Logger

defmodule OAuth2Example.PageController do
  use OAuth2Example.Web, :controller

  plug :action

  def index(conn, _params) do
    Logger.debug "Displaying index page"
    Logger.debug inspect(conn)
    render conn, "index.html"
  end
end

Add logging to inspect the connection just prior to displaying the index page
Add logging to inspect the connection just prior to displaying the index page

wsmoak/phoenix_oauth2_example