Author: rande
Date: 2010-05-04 01:10:32 +0200 (Tue, 04 May 2010)
New Revision: 29341

Modified:
   
plugins/sfSolrPlugin/branches/sf1.2/lib/task/sfLuceneUpdateModelSystemTask.class.php
Log:
[sfSolrPlugin] update task : fix bug and improve output

Modified: 
plugins/sfSolrPlugin/branches/sf1.2/lib/task/sfLuceneUpdateModelSystemTask.class.php
===================================================================
--- 
plugins/sfSolrPlugin/branches/sf1.2/lib/task/sfLuceneUpdateModelSystemTask.class.php
        2010-05-03 23:01:16 UTC (rev 29340)
+++ 
plugins/sfSolrPlugin/branches/sf1.2/lib/task/sfLuceneUpdateModelSystemTask.class.php
        2010-05-03 23:10:32 UTC (rev 29341)
@@ -182,7 +182,7 @@
   {
     if(preg_match("/Allowed memory size of ([0-9]*) bytes/", $line))
     {
-      $this->logSection('lucene', '  memory limit reach, starting new 
subprocess');
+      $this->logSection('lucene', '  catch memory limit exception');
 
       return true;
     }
@@ -192,7 +192,11 @@
   
   public function analyseLine($line)
   {
-    // the fatal error momory exception is always the last line ...
-    $this->memory_error = $this->isMemoryException($line);
+    if(!$this->memory_error)
+    {
+      $this->memory_error = $this->isMemoryException($line);
+    }
+    
+    $this->logSection('subprocess', trim($line));
   }
 }
\ No newline at end of file

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-svn?hl=en.

Reply via email to