Sfoglia il codice sorgente

Resource debug logging was causing the script to hang whith large numnber of resources - https://github.com/jonnnnyw/php-phantomjs/issues/107

Jonny Wenmoth 9 anni fa
parent
commit
cf8d9a221f

+ 0 - 3
src/JonnyW/PhantomJs/Resources/procedures/http_lazy.proc

@@ -61,8 +61,6 @@ page.onResourceRequested = function (req) {
     
     
     resources++;
     resources++;
     window.clearTimeout(timeout);
     window.clearTimeout(timeout);
-    
-    debug.push(new Date().toISOString().slice(0, -5) + ' [INFO] PhantomJS - Resource requested (' + req.url + ')');
 };
 };
 
 
 /**
 /**
@@ -77,7 +75,6 @@ page.onResourceReceived = function (res) {
     if(!res.stage || res.stage === 'end') {
     if(!res.stage || res.stage === 'end') {
         
         
         resources--;
         resources--;
-        debug.push(new Date().toISOString().slice(0, -5) + ' [INFO] PhantomJS - Resource received (' + res.url + ') ~ ' + res.status);
         
         
         if (resources === 0) {
         if (resources === 0) {