Author: ornicar2
Date: 2010-01-23 15:39:42 +0100 (Sat, 23 Jan 2010)
New Revision: 27094

Modified:
   plugins/diemPlugin/trunk/dmCorePlugin/lib/log/dmFileLog.php
Log:
[Diem]
- fixed dmFileLog corrupted line detection

Modified: plugins/diemPlugin/trunk/dmCorePlugin/lib/log/dmFileLog.php
===================================================================
--- plugins/diemPlugin/trunk/dmCorePlugin/lib/log/dmFileLog.php 2010-01-23 
14:31:33 UTC (rev 27093)
+++ plugins/diemPlugin/trunk/dmCorePlugin/lib/log/dmFileLog.php 2010-01-23 
14:39:42 UTC (rev 27094)
@@ -114,12 +114,9 @@
       
       $encodedLines = explode("\n", $data);
       
-      // first line is corrupted. remove it from encodedLine and decrement 
filePosition to catch it next time
-      if (!is_array($this->decode($encodedLines[0])))
-      {
-        $filePosition += $strlenFunction($encodedLines[0]);
-        unset($encodedLines[0]);
-      }
+      // first line is nearly always corrupted. remove it from encodedLine and 
decrement filePosition to catch it next time
+      $filePosition += $strlenFunction($encodedLines[0]);
+      unset($encodedLines[0]);
       
       foreach(array_reverse($encodedLines) as $encodedLine)
       {

-- 
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