```ruby
class ErrorsController < ApplicationController
  before_action :authenticate_user!

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

Add current user id to js error logging.
user
```ruby
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
```
assistant