- fix NULL log file path handling
This commit is contained in:
@@ -99,7 +99,7 @@ class AgentConfig:
|
|||||||
|
|
||||||
if 'path' in config['log']:
|
if 'path' in config['log']:
|
||||||
path = config['log']['path']
|
path = config['log']['path']
|
||||||
if len(path) > 0:
|
if path is not None and len(path) > 0:
|
||||||
path = Path(path)
|
path = Path(path)
|
||||||
if not path.is_absolute():
|
if not path.is_absolute():
|
||||||
path = Path(__file__).parent.parent / path
|
path = Path(__file__).parent.parent / path
|
||||||
|
|||||||
Reference in New Issue
Block a user