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;
|
var freqRatioMax = 1 - minAccuracy;
|
||||||
|
|
||||||
// Request cache size of 50MB (~5000 bytes/image).
|
// 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.
|
// Deep error handling for vendor hooks.
|
||||||
var vendorDomain = domain.create();
|
var vendorDomain = domain.create();
|
||||||
|
@ -300,6 +300,8 @@ cache(function(data, match, sendBadge, request) {
|
||||||
var badgeData = getBadgeData('build', data);
|
var badgeData = getBadgeData('build', data);
|
||||||
request(options, function(err, res) {
|
request(options, function(err, res) {
|
||||||
if (err != null) {
|
if (err != null) {
|
||||||
|
console.error('Travis error: ' + err.stack);
|
||||||
|
if (res) { console.error(''+res); }
|
||||||
badgeData.text[1] = 'invalid';
|
badgeData.text[1] = 'invalid';
|
||||||
sendBadge(format, badgeData);
|
sendBadge(format, badgeData);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user