Skip to content

Commit

Permalink
Merge pull request #112 from thegameofcode/feature/improved_salesforc…
Browse files Browse the repository at this point in the history
…e_traces

Salesforce traces improved
  • Loading branch information
IGZvictorfierro committed Jun 1, 2016
2 parents c54ef51 + 2107a8f commit c0188d8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/platforms/salesforce.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,10 +280,19 @@ function renewSFAccessTokenIfNecessary(user, platform, cbk) {
method: 'POST'
};

log.info({
sf_options: optionsForSFRenew
}, 'SF renew request');

request(optionsForSFRenew, function (err, res, rawBody) {
if (err) {
return cbk(err);
}

log.info({
sf_body: rawBody
}, 'SF renew response');

const body = JSON.parse(rawBody);
const newAccessToken = body.access_token;

Expand Down

0 comments on commit c0188d8

Please sign in to comment.