Commit cee6730f authored by Łukasz Nowak's avatar Łukasz Nowak

- use proper log file definition

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25703 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b06c6fa0
...@@ -252,7 +252,7 @@ class TIDStorage: ...@@ -252,7 +252,7 @@ class TIDStorage:
self._transaction_id_to_storage_id_list_dict = {} self._transaction_id_to_storage_id_list_dict = {}
self._storage_id_to_storage_id_set_dict = {} self._storage_id_to_storage_id_set_dict = {}
if tid_file_path is not None: if tid_file_path is not None:
self._tid_file = LogFile(tid_file_path) self._tid_file = openTIDLog()
self._burst_period = burst_period self._burst_period = burst_period
self._full_dump_period = full_dump_period self._full_dump_period = full_dump_period
now = time.time() now = time.time()
...@@ -509,6 +509,9 @@ def main(address, port): ...@@ -509,6 +509,9 @@ def main(address, port):
def openLog(): def openLog():
return open(options.logfile_name, 'a', 0) return open(options.logfile_name, 'a', 0)
def openTIDLog():
return open(options.status_file, 'a', 0)
def HUPHandler(signal_number, stack): def HUPHandler(signal_number, stack):
log('Rotating logfile...') log('Rotating logfile...')
sys.stdout = sys.stderr = openLog() sys.stdout = sys.stderr = openLog()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment