Alexander Hesse avatar Alexander Hesse committed 656335a

Added init logging keyword

Comments (0)

Files changed (3)

rpython/tool/ansi_print.py

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

rpython/translator/driver.py

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

rpython/translator/goal/translate.py

 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__]
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.