From cee6730fcbca92c6a9b14bc3ceef86cb2006f9fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com> Date: Wed, 25 Feb 2009 14:21:07 +0000 Subject: [PATCH] - use proper log file definition git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25703 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/TIDStorage/bin/tidstorage.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/product/TIDStorage/bin/tidstorage.py b/product/TIDStorage/bin/tidstorage.py index 92d7bf20d4c..78d0591776f 100755 --- a/product/TIDStorage/bin/tidstorage.py +++ b/product/TIDStorage/bin/tidstorage.py @@ -252,7 +252,7 @@ class TIDStorage: 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 main(address, port): 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() -- 2.30.9