Remove the unused "logfile" option and do not append 'logs' to every log path
This commit is contained in:
parent
1209bd94b6
commit
4fd222a493
2 changed files with 2 additions and 5 deletions
|
@ -78,7 +78,6 @@ DEFAULT_CONFIG = {
|
|||
'lazy_resize': True,
|
||||
'load_log': 10,
|
||||
'log_dir': '',
|
||||
'logfile': 'logs',
|
||||
'log_errors': True,
|
||||
'max_lines_in_memory': 2048,
|
||||
'max_messages_in_memory': 2048,
|
||||
|
@ -590,7 +589,7 @@ def check_create_log_dir():
|
|||
home = environ.get('HOME')
|
||||
data_dir = path.join(home, '.local', 'share')
|
||||
|
||||
LOG_DIR = path.join(data_dir, 'poezio')
|
||||
LOG_DIR = path.join(data_dir, 'poezio', 'logs')
|
||||
|
||||
LOG_DIR = path.expanduser(LOG_DIR)
|
||||
|
||||
|
|
|
@ -25,9 +25,7 @@ import logging
|
|||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
from config import LOG_DIR
|
||||
|
||||
log_dir = os.path.join(LOG_DIR, 'logs')
|
||||
from config import LOG_DIR as log_dir
|
||||
|
||||
message_log_re = re.compile(r'MR (\d{4})(\d{2})(\d{2})T'
|
||||
r'(\d{2}):(\d{2}):(\d{2})Z '
|
||||
|
|
Loading…
Reference in a new issue