increased timeout again (yep some sites needs it) and stringify errors

This commit is contained in:
soulgalore 2014-08-11 13:26:33 +02:00
parent b2639392bc
commit 9c0b0708d2
1 changed files with 2 additions and 2 deletions

View File

@ -89,7 +89,7 @@ function analyzeUrl(args, asyncDoneCallback) {
log.log('info', "Running YSlow for " + url);
childProcess.execFile(binPath, childArgs, {
timeout: 120000
timeout: 240000
}, function(err, stdout, stderr) {
if (stderr) {
@ -99,7 +99,7 @@ function analyzeUrl(args, asyncDoneCallback) {
if (err) {
// YSlow writes console.err but ends up in stdout
log.log('error', 'Error running YSlow: ' + url + ' (' + stdout + stderr +
log.log('error', 'Error running YSlow: ' + url + ' (' + JSON.stringify(stdout) + stderr +
err + ')');
asyncDoneCallback(undefined, err + stdout);
} else {