[Erp5-report] r25703 - /erp5/trunk/products/TIDStorage/bin/tidstorage.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Feb 25 15:21:16 CET 2009


Author: luke
Date: Wed Feb 25 15:21:07 2009
New Revision: 25703

URL: http://svn.erp5.org?rev=25703&view=rev
Log:
 - use proper log file definition

Modified:
    erp5/trunk/products/TIDStorage/bin/tidstorage.py

Modified: erp5/trunk/products/TIDStorage/bin/tidstorage.py
URL: http://svn.erp5.org/erp5/trunk/products/TIDStorage/bin/tidstorage.py?rev=25703&r1=25702&r2=25703&view=diff
==============================================================================
--- erp5/trunk/products/TIDStorage/bin/tidstorage.py [utf8] (original)
+++ erp5/trunk/products/TIDStorage/bin/tidstorage.py [utf8] Wed Feb 25 15:21:07 2009
@@ -252,7 +252,7 @@
     self._transaction_id_to_storage_id_list_dict = {}
     self._storage_id_to_storage_id_set_dict = {}
     if tid_file_path is not None:
-      self._tid_file = LogFile(tid_file_path)
+      self._tid_file = openTIDLog()
       self._burst_period = burst_period
       self._full_dump_period = full_dump_period
       now = time.time()
@@ -509,6 +509,9 @@
 def openLog():
   return open(options.logfile_name, 'a', 0)
 
+def openTIDLog():
+  return open(options.status_file, 'a', 0)
+
 def HUPHandler(signal_number, stack):
   log('Rotating logfile...')
   sys.stdout = sys.stderr = openLog()




More information about the Erp5-report mailing list