[pypy-commit] pypy jit-short_from_state: some suppor for truncated logfiles

hakanardo noreply at buildbot.pypy.org
Mon Jun 6 14:23:25 CEST 2011


Author: Hakan Ardo <hakan at debian.org>
Branch: jit-short_from_state
Changeset: r44736:2314a6cf2d15
Date: 2011-06-06 08:20 +0200
http://bitbucket.org/pypy/pypy/changeset/2314a6cf2d15/

Log:	some suppor for truncated logfiles

diff --git a/pypy/jit/tool/findadrinlog.py b/pypy/jit/tool/findadrinlog.py
--- a/pypy/jit/tool/findadrinlog.py
+++ b/pypy/jit/tool/findadrinlog.py
@@ -1,3 +1,4 @@
+import autopath
 import sys, re
 from pypy.tool import logparser
 
diff --git a/pypy/tool/logparser.py b/pypy/tool/logparser.py
--- a/pypy/tool/logparser.py
+++ b/pypy/tool/logparser.py
@@ -85,9 +85,11 @@
     for entry in log:
         if entry[0] == 'debug_print':
             resulttext.append(entry[1])
-        else:
+        elif len(entry) == 4:
             got.extend(extract_category(
                 entry[3], catprefix, toplevel=entry[0].startswith(catprefix)))
+        else:
+            resulttext.append('... LOG TRUCATED ...')
     if toplevel:
         resulttext.append('')
         got.insert(0, '\n'.join(resulttext))


More information about the pypy-commit mailing list