class ErrorsController < ApplicationController
  before_action :authenticate_user!

  def create
    logger.warn params[:stack]
    head 204
  end
end

class ErrorsController < ApplicationController
  before_action :authenticate_user!

  def create
    logger.warn "JS error for user #{current_user.id}"
    logger.warn params[:stack]
    head 204
  end
end

Add current user id to js error logging.
Add current user id to js error logging.
