Added log for timeout

This commit is contained in:
Thomas FORGIONE 2015-10-05 10:11:59 +02:00
parent 5006d1d71d
commit b5aa62cb93
2 changed files with 4 additions and 3 deletions

View File

@ -1064,6 +1064,7 @@ DBReq.LastExpGetter.prototype.execute = function() {
Log.dberror(err + ' in LastExpGetter (DBReq)'); Log.dberror(err + ' in LastExpGetter (DBReq)');
} }
if (result.rows.length === 0) { if (result.rows.length === 0) {
Log.debug('Timeout', true);
setTimeout(function() { setTimeout(function() {
self.execute(); self.execute();
}, 1000); }, 1000);

View File

@ -1,5 +1,5 @@
var baseUrl = 'http://localhost:4000/'; // var baseUrl = 'http://localhost:4000/';
// var baseUrl = 'http://3dinterface.no-ip.org/'; var baseUrl = 'http://3dinterface.no-ip.org/';
function makeId() function makeId()
{ {
@ -19,7 +19,7 @@ var casper = require('casper').create({
waitTimeout: 100000 waitTimeout: 100000
}); });
var limit = 100; var limit = 1000;
casper.start(baseUrl); casper.start(baseUrl);