Revision: 103
Author: roman_yakovenko
Date: 2006-05-16 12:33:24 -0700 (Tue, 16 May 2006)
ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=103&view=rev
Log Message:
-----------
improving log functionality of base file writer.
Modified Paths:
--------------
pyplusplus_dev/pyplusplus/file_writers/writer.py
Modified: pyplusplus_dev/pyplusplus/file_writers/writer.py
===================================================================
--- pyplusplus_dev/pyplusplus/file_writers/writer.py 2006-05-16 19:31:47 UTC (rev 102)
+++ pyplusplus_dev/pyplusplus/file_writers/writer.py 2006-05-16 19:33:24 UTC (rev 103)
@@ -55,6 +55,7 @@
@param content: The content of the file
@type content: str
"""
+ fname = os.path.split( fpath )[1]
_logging_.logger.debug( 'write code to file "%s" - started' % fpath )
start_time = time.clock()
fcontent_new = []
@@ -80,6 +81,6 @@
f = file( fpath, 'w+b' )
f.write( fcontent_new )
f.close()
- _logging_.logger.debug( 'write code - done( %f seconds )' % ( time.clock() - start_time ) )
+ _logging_.logger.info( 'file "%s" - updated( %f seconds )' % ( fname, time.clock() - start_time ) )
write_file = staticmethod( write_file )
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|