-
Notifications
You must be signed in to change notification settings - Fork 682
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
fix(autoware_traffic_light_map_based_detector): output from screen to both #8411
fix(autoware_traffic_light_map_based_detector): output from screen to both #8411
Conversation
Thank you for contributing to the Autoware project! 🚧 If your pull request is in progress, switch it to draft mode. Please ensure:
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8411 +/- ##
==========================================
+ Coverage 24.06% 29.18% +5.12%
==========================================
Files 1384 1601 +217
Lines 102216 117338 +15122
Branches 38963 50569 +11606
==========================================
+ Hits 24594 34250 +9656
+ Misses 75105 73913 -1192
- Partials 2517 9175 +6658
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
@mitsudome-r @xmfcx
Do you have any comments on this Pull Request? In the past, the .ros/log files in the system have grown significantly, which caused the disk space on the autonomous driving ECU to become constrained. I'm a bit concerned that if log files are output everywhere, it might lead to unintended system shutdowns.
@kminoda
Is this change only for this node? Do you plan to apply this to other nodes as well? If so, I think we should establish some rules.
@yukkysaito Thank you for the comment. I am willing to get an feedback from the community 🙏 As a first step, I would like to merge this change for several nodes which tend to have a lot of issues. For these nodes, I think this change would make a lot of difference when debugging. By choosing several nodes, I think we can minimize the impact on the system performance as well. |
I think we should consider giving a guidance about how users can setup log rotation if they wish to when we set output to "both" for all the nodes. |
@mitsudome-r Thank you for the comment. As you've mentioned, I would like to make this type of change to a few nodes where the debugging efficiency is critical even in short term perspective. @yukkysaito Would you confirm if it is OK to merge several PRs that I've created for now? I will wait for your comment before merging them. |
If you have another logger outside ROS system (e.g. syslog), I think the |
@yukkysaito like @mitsudome-r suggested, creating a tutorial to set up https://linux.die.net/man/8/logrotate would be helpful. As for this PR, we can merge as is. My suggestion would be to set the log preferences of all nodes from a global variable. So everything will be logged to "screen or log file or both" when you select it from the main launch file. Maybe we could also have a simple python node package that monitors the log directory and keeps it at certain size too. Now
Short term
Long term
|
@mitsudome-r @xmfcx Thanks for your comments. I agree with you.
@kminoda If it's not urgent, I might want to consider adopting the proposed short term change ( |
If that's the case, we should close all these PRs and go for this option. |
@yukkysaito Sorry I missed the latest comment 🙏 Do we have any timeline for incorporating the global variable? Although this PR is not critically important, it is kind of urgent to set |
@kminoda |
Description
Set output from screen to both to improve the debugging efficiency of Autoware in general.
With this change, the output from node will not only be displayed in screen but also to the log file.
See https://github.com/ros2/launch/blob/986ea832cec49c18bee4e29ee4df37fe3844fa90/launch/launch/logging/__init__.py#L397-L487
Related links
TIER IV INTERNAL THREAD
How was this PR tested?
Not tested
Notes for reviewers
None
Interface changes
None.
Effects on system behavior
Although there will be a slight increase in computational load due to the additional log, I would say that the risk is minimal since the node's output does not occupy terminal at this moment. But just in case, I would like to make this change for several nodes chosen from perception component which tends to have some issues pretty often.