There are some instances where an exception is being encountered before the logging directory is properly created. This then creates a new exception, 'Invalid log file path'. This creates two issues:
The true error is now obscured by this 'Invalid log file path' error, making it difficult to debug the actual issue.
A stack trace is bubbled up to the user without being handled and displayed properly
Checklist
[ ] The code change is covered by unit tests. I have added tests that prove my fix is effective or that my feature works
[ ] I have performed end-to-end test locally.
[ ] New and existing unit tests pass locally with my changes
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
Description
There are some instances where an exception is being encountered before the logging directory is properly created. This then creates a new exception, 'Invalid log file path'. This creates two issues:
Checklist