1. Pypy
  2. Untitled project
  3. pypy

Commits

Alexander Hesse  committed 656335a

Added init logging keyword

  • Participants
  • Parent commits 29f8249
  • Branches quiet-rpython

Comments (0)

Files changed (3)

File rpython/tool/ansi_print.py

View file
         'Error': ((1, 31), False),
         'info': ((35,), False),
         'stub': ((34,), False),
+        'init': ((1, 34), False),
     }
     
     log_on_quiet = [
         "ERROR",
         "Error",
-        "info",
+        "init",
     ]
 
     def __init__(self, kw_to_color={}, file=None):

File rpython/translator/driver.py

View file
     def _do(self, goal, func, *args, **kwds):
         title = func.task_title
         if goal in self.done:
-            self.log.info("already done: %s" % title)
+            self.log.init("already done: %s" % title)
             return
         else:
-            self.log.info("%s..." % title)
+            self.log.init("%s" % title)
         debug_start('translation-task')
         debug_print('starting', goal)
         self.timer.start_event(goal)
         #import gc; gc.dump_rpy_heap('rpyheap-after-%s.dump' % goal)
         return res
 
-    @taskdef([], "Annotating&simplifying")
+    @taskdef([], "Annotating & simplifying")
     def task_annotate(self):
         """ Annotate
         """

File rpython/translator/goal/translate.py

View file
 py.log.setconsumer("translation", ansi_log)
 
 def load_target(targetspec):
-    log.info("Translating target as defined by %s" % targetspec)
+    log.init("Translating target %s" % targetspec)
     if not targetspec.endswith('.py'):
         targetspec += '.py'
     thismod = sys.modules[__name__]