[pypy-svn] r40664 - pypy/dist/pypy/translator/js

fijal at codespeak.net fijal at codespeak.net
Sun Mar 18 12:59:44 CET 2007


Author: fijal
Date: Sun Mar 18 12:59:42 2007
New Revision: 40664

Modified:
   pypy/dist/pypy/translator/js/database.py
Log:
Decrease verbosity by default


Modified: pypy/dist/pypy/translator/js/database.py
==============================================================================
--- pypy/dist/pypy/translator/js/database.py	(original)
+++ pypy/dist/pypy/translator/js/database.py	Sun Mar 18 12:59:42 2007
@@ -112,9 +112,12 @@
                 self.consts[const]
                 return self.reverse_consts[self.consts[const]]
         except KeyError:
-            log("New const:%r"%value)
-            if isinstance(value, ootype._string):
-                log(value._str)
+            if self.genoo.config.translation.verbose:
+                log("New const:%r"%value)
+                if isinstance(value, ootype._string):
+                    log(value._str)
+            else:
+                log.dot()
             name = const.get_name()
             if name in self.const_names:
                 name += '__%d' % len(self.consts)
@@ -164,12 +167,14 @@
                             all_c.append(i)
                         dep_ok.add(const)
 
-        log("Consts: %r"%self.consts)
         # We need to keep track of fields to make sure
         # our items appear earlier than us
         to_init = []
         for const, name in generate_constants(self.consts):
-            log("Recording %r %r"%(const,name))
+            if self.genoo.config.translation.verbose:
+                log("Recording %r %r"%(const,name))
+            else:
+                log.dot()
             ilasm.load_local(self.const_var)
             const.init(ilasm)
             ilasm.set_field(None, name)



More information about the Pypy-commit mailing list