Commits

Hakan Ardo committed 2314a6c

some suppor for truncated logfiles

  • Participants
  • Parent commits a246b84
  • Branches jit-short_from_state

Comments (0)

Files changed (2)

pypy/jit/tool/findadrinlog.py

+import autopath
 import sys, re
 from pypy.tool import logparser
 

pypy/tool/logparser.py

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