Permalink
Browse files

improved stager debugging

Change-Id: I6a77a6a4d0ede0b4a054070d4a6247e5368596f0
  • Loading branch information...
Glenn Oppegard & Patrick Bozeman
Glenn Oppegard & Patrick Bozeman committed Jan 29, 2013
1 parent 1643a28 commit a32a266d688568787e0dd3e8f4d90550f6ddcb70
Showing with 4 additions and 2 deletions.
  1. +4 −2 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

0 comments on commit a32a266

Please sign in to comment.