-
Notifications
You must be signed in to change notification settings - Fork 907
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a symlink to the latest log directory.
- Loading branch information
1 parent
00e80d0
commit 28f8361
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28f8361
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 like having the
latest
symlink, but I have a small nitpick with this patch. Why doesn't it put the symlink inside oflogfile_dir
? This is messing up things on my system because I have changed theROS_LOG_DIR
to be /var/log/ros, and so it's now trying to make/var/log/latest
which it doesn't have permissions for. Would things break if the latest symlink was moved into logfile_dir28f8361
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.
Thanks for pointing it out. While it does work for log files created in e.g. subfolders it shouldn't try to symlink the log dir itself. Please see #795 for a patch.
Can you please clarify what
messing up things on my system
means? From reading the code it should gracefully fall back and not create the symlink when the location is not writable.28f8361
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.
Sorry,
messing things up on my system
just means echoing out an error when most ros commands are run leading to me scratching my head for a while.