Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

improved stager debugging

Change-Id: I6a77a6a4d0ede0b4a054070d4a6247e5368596f0
  • Loading branch information...
commit a32a266d688568787e0dd3e8f4d90550f6ddcb70 1 parent 1643a28
Glenn Oppegard & Patrick Bozeman authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/cloud_controller/app_stager.rb
View
6 lib/cloud_controller/app_stager.rb
@@ -23,10 +23,12 @@ def stage_app(app)
client_error = nil
results = EM.schedule_sync do |promise|
client = VCAP::Stager::Client::EmAware.new(MessageBus.nats.client, queue)
- deferrable = client.stage(staging_request(app), staging_timeout)
+ request = staging_request(app)
+ logger.debug "staging #{app.guid} request: #{request}"
+ deferrable = client.stage(request, staging_timeout)
deferrable.errback do |e|
- logger.error "staging #{app.guid} error #{e}"
+ logger.error "staging #{app.guid} request: #{request} error #{e}"
client_error = e
promise.deliver(e)
end
Please sign in to comment.
Something went wrong with that request. Please try again.