mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-13 07:47:14 +03:00
Updated monitor to support '' configured journal dir
This commit is contained in:
parent
d95db448e8
commit
48427a770d
@ -129,11 +129,10 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below
|
||||
"""Start journal monitoring."""
|
||||
logger.debug('Begin...')
|
||||
self.root = root
|
||||
journal_dir = config.get_str('journaldir', default=str(config.default_journal_dir))
|
||||
journal_dir = config.get_str('journaldir')
|
||||
|
||||
if journal_dir is None:
|
||||
logger.debug('journal_dir was None, setting ""')
|
||||
journal_dir = ''
|
||||
if journal_dir == '' or journal_dir is None:
|
||||
journal_dir = str(config.default_journal_dir)
|
||||
|
||||
# TODO(A_D): this is ignored for type checking due to all the different types config.get returns
|
||||
# When that is refactored, remove the magic comment
|
||||
|
Loading…
x
Reference in New Issue
Block a user