mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-03 00:51:11 +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."""
|
"""Start journal monitoring."""
|
||||||
logger.debug('Begin...')
|
logger.debug('Begin...')
|
||||||
self.root = root
|
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:
|
if journal_dir == '' or journal_dir is None:
|
||||||
logger.debug('journal_dir was None, setting ""')
|
journal_dir = str(config.default_journal_dir)
|
||||||
journal_dir = ''
|
|
||||||
|
|
||||||
# TODO(A_D): this is ignored for type checking due to all the different types config.get returns
|
# 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
|
# When that is refactored, remove the magic comment
|
||||||
|
Loading…
x
Reference in New Issue
Block a user