new: implemented log rotation (closes #527)

This commit is contained in:
Simone Margaritelli
2019-11-08 13:01:50 +01:00
parent 8d5834232b
commit 97a019fe25
4 changed files with 80 additions and 5 deletions

View File

@ -26,7 +26,7 @@ class LastSession(object):
def __init__(self, config):
self.config = config
self.voice = Voice(lang=config['main']['lang'])
self.path = config['main']['log']
self.path = config['main']['log']['path']
self.last_session = []
self.last_session_id = ''
self.last_saved_session_id = ''