-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[config] Small hotfix for path_processing and logging to file #1917
base: master
Are you sure you want to change the base?
Conversation
…laced with current yaml path.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
{ | ||
return false; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not 100% sure if this is the best way to check if you have write access to a directory.
What happens if you can't delete the file anymore?
I would guess that there are system functions that can check write access to a directory.
Description
Logging to file expected a path separator at the end of the path. This now will be checked beforehand and handled accordingly.
GeteCALLogDirImpl used to check the local user and system path separately. Now its connected to the yaml file path. In case no LOG_VAR, DATA_VAR or config path is set, it tries to log to the folder where the ecal configuration yaml was loaded from.