Travis logs to test rate limiting
This commit is contained in:
parent
ad86099e1a
commit
b0946a5027
|
@ -158,7 +158,7 @@ var minAccuracy = 0.75;
|
|||
var freqRatioMax = 1 - minAccuracy;
|
||||
|
||||
// Request cache size of 50MB (~5000 bytes/image).
|
||||
var requestCache = new LruCache(10000);
|
||||
var requestCache = new LruCache(0); // 10000
|
||||
|
||||
// Deep error handling for vendor hooks.
|
||||
var vendorDomain = domain.create();
|
||||
|
@ -300,6 +300,8 @@ cache(function(data, match, sendBadge, request) {
|
|||
var badgeData = getBadgeData('build', data);
|
||||
request(options, function(err, res) {
|
||||
if (err != null) {
|
||||
console.error('Travis error: ' + err.stack);
|
||||
if (res) { console.error(''+res); }
|
||||
badgeData.text[1] = 'invalid';
|
||||
sendBadge(format, badgeData);
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue
Block a user