 
   handle: (body, status, xhr) ->
     if Travis.config.pro
-      Job.find(@get('id')).get('log').set('token', xhr.getResponseHeader('X-Log-Access-Token'))
+      @log.set('token', xhr.getResponseHeader('X-Log-Access-Token'))
 
     if xhr.status == 204
       $.ajax(url: @redirectTo(xhr), type: 'GET', success: @handlers.text)

          @set('removed', true)
        @loadParts(json['log']['parts'])
      text: (text) => @loadText(text)
    Request.create(id: id, handlers: handlers).run() if id = @get('job.id')

  clear: ->
    @clearParts()

require 'travis/log_chunks'

Ajax = Travis.ajax

Request = Em.Object.extend
  HEADERS:
