Skip to content

Commit

Permalink
Log request data when Travis errors (#1631)
Browse files Browse the repository at this point in the history
  • Loading branch information
espadrine authored and paulmelnikow committed Jul 20, 2018
1 parent e39b280 commit fd76819
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,8 @@ cache(function(data, match, sendBadge, request) {
const badgeData = getBadgeData('build', data);
request(options, function(err, res) {
if (err != null) {
log.error(`Travis error: ${err.stack}`);
log.error('Travis error: data:' + JSON.stringify(data) +
'\nStack: ' + err.stack);
if (res) { log.error(''+res); }
}
if (checkErrorResponse(badgeData, err, res)) {
Expand Down

0 comments on commit fd76819

Please sign in to comment.