Author: Alexander Hesse <[email protected]>
Branch: quiet-rpython
Changeset: r60656:656335af6d22
Date: 2013-01-28 18:04 +0100
http://bitbucket.org/pypy/pypy/changeset/656335af6d22/
Log: Added init logging keyword
diff --git a/rpython/tool/ansi_print.py b/rpython/tool/ansi_print.py
--- a/rpython/tool/ansi_print.py
+++ b/rpython/tool/ansi_print.py
@@ -30,12 +30,13 @@
'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):
diff --git a/rpython/translator/driver.py b/rpython/translator/driver.py
--- a/rpython/translator/driver.py
+++ b/rpython/translator/driver.py
@@ -268,10 +268,10 @@
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)
@@ -300,7 +300,7 @@
#import gc; gc.dump_rpy_heap('rpyheap-after-%s.dump' % goal)
return res
- @taskdef([], "Annotating&simplifying")
+ @taskdef([], "Annotating & simplifying")
def task_annotate(self):
""" Annotate
"""
diff --git a/rpython/translator/goal/translate.py
b/rpython/translator/goal/translate.py
--- a/rpython/translator/goal/translate.py
+++ b/rpython/translator/goal/translate.py
@@ -92,7 +92,7 @@
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__]
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit