Skip to content
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(log-messages): reduce excessive log messages #6406

Conversation

ahmeddesokyebrahim
Copy link
Contributor

Description

This PR is one of group of PRs that aim to fix Autoware logging system to achieve the goal of reducing excessive error and warning logs on Autoware launch.

Part of:

Related links

More details in the issue.

Tests performed

  • Planning Simulation
    • Run Autoware planning simulator and you can see no more excessive and recurring error, warning, and info message when the system running as expected
  • Rosbag Replay Simulation
  • AWSIM
    • To be addressed in another PR - extended goal)

Notes for reviewers

Take into consideration relevant PRs.

Interface changes

N.A

Effects on system behavior

  • Improved console output => better developer experience specially for debugging and catching actual problems.
  • Some recurrent info messages are lowered to debug level. So the developer would need to set the logger level of that specific node to see the debug message.

Pre-review checklist for the PR author

The PR author must check the checkboxes below when creating the PR.

In-review checklist for the PR reviewers

The PR reviewers must check the checkboxes below before approval.

  • The PR follows the pull request guidelines.
  • The PR has been properly tested.
  • The PR has been reviewed by the code owners.

Post-review checklist for the PR author

The PR author must check the checkboxes below before merging.

  • There are no open discussions or they are tracked via tickets.
  • The PR is ready for merge.

After all checkboxes are checked, anyone who has write access can merge the PR.

@ahmeddesokyebrahim ahmeddesokyebrahim self-assigned this Feb 14, 2024
@github-actions github-actions bot added the component:sensing Data acquisition from sensors, drivers, preprocessing. (auto-assigned) label Feb 14, 2024
@ktro2828 ktro2828 changed the title fix(log-messages): reduce excessive log messages fix(log-messages): reduce excessive log messages Feb 20, 2024
@ahmeddesokyebrahim ahmeddesokyebrahim force-pushed the autoware/universe/5539-fix-log-messages-rosbag-replay-simulation branch from f0a6cfb to ca4a381 Compare February 20, 2024 13:02
@github-actions github-actions bot added the component:localization Vehicle's position determination in its environment. (auto-assigned) label Feb 20, 2024
@ahmeddesokyebrahim ahmeddesokyebrahim force-pushed the autoware/universe/5539-fix-log-messages-rosbag-replay-simulation branch from 6bb55d0 to 8b8a2c5 Compare February 29, 2024 14:43
@ahmeddesokyebrahim ahmeddesokyebrahim marked this pull request as ready for review February 29, 2024 14:55
@ahmeddesokyebrahim ahmeddesokyebrahim added the tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Feb 29, 2024
Copy link

codecov bot commented Feb 29, 2024

Codecov Report

Attention: Patch coverage is 0% with 7 lines in your changes are missing coverage. Please review.

Project coverage is 14.80%. Comparing base (c1b8f46) to head (b6758d9).
Report is 3 commits behind head on main.

Files Patch % Lines
...atenate_data/concatenate_and_time_sync_nodelet.cpp 0.00% 2 Missing ⚠️
...zation/localization_util/src/smart_pose_buffer.cpp 0.00% 1 Missing ⚠️
localization/localization_util/src/util_func.cpp 0.00% 1 Missing ⚠️
...ization/ndt_scan_matcher/src/map_update_module.cpp 0.00% 1 Missing ⚠️
...ion/ndt_scan_matcher/src/ndt_scan_matcher_core.cpp 0.00% 1 Missing ⚠️
sensing/pointcloud_preprocessor/src/filter.cpp 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6406   +/-   ##
=======================================
  Coverage   14.80%   14.80%           
=======================================
  Files        1915     1915           
  Lines      132258   132257    -1     
  Branches    39320    39316    -4     
=======================================
  Hits        19577    19577           
  Misses      90847    90847           
+ Partials    21834    21833    -1     
Flag Coverage Δ *Carryforward flag
differential 6.66% <0.00%> (?)
total 14.80% <ø> (+<0.01%) ⬆️ Carriedforward from c1b8f46

*This pull request uses carry forward flags. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@YamatoAndo YamatoAndo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM about the localizaiton module

@mitsudome-r mitsudome-r enabled auto-merge (squash) March 11, 2024 07:09
@ahmeddesokyebrahim
Copy link
Contributor Author

ahmeddesokyebrahim commented Mar 12, 2024

@xmfcx will it be possible that you have a look to this PR ?
It is quite straightforward one.
Thanks for your continuous support !

@ahmeddesokyebrahim ahmeddesokyebrahim force-pushed the autoware/universe/5539-fix-log-messages-rosbag-replay-simulation branch from 8b8a2c5 to 61458f8 Compare March 12, 2024 04:01
…and_time_sync_nodelet for info about subscribing to topics and their names

Signed-off-by: Ahmed Ebrahim <ahmed.ebrahim@leodrive.ai>
…that there is a mismatch in timestamp

Signed-off-by: Ahmed Ebrahim <ahmed.ebrahim@leodrive.ai>
Signed-off-by: Ahmed Ebrahim <ahmed.ebrahim@leodrive.ai>
Signed-off-by: Ahmed Ebrahim <ahmed.ebrahim@leodrive.ai>
@ahmeddesokyebrahim ahmeddesokyebrahim force-pushed the autoware/universe/5539-fix-log-messages-rosbag-replay-simulation branch from 61458f8 to b6758d9 Compare March 12, 2024 04:04
@@ -145,10 +145,10 @@ PointCloudConcatenateDataSynchronizerComponent::PointCloudConcatenateDataSynchro

// Subscribers
{
RCLCPP_INFO_STREAM(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[imo]
This is just printed during the initialization process.
Can we keep this as INFO?

Copy link
Contributor

@yukkysaito yukkysaito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mitsudome-r mitsudome-r merged commit 4747e74 into autowarefoundation:main Mar 12, 2024
26 of 27 checks passed
kaigohirao pushed a commit to kaigohirao/autoware.universe that referenced this pull request Mar 22, 2024
…6406)

* fix(log-messages): lower log level from info to debug in concatenate_and_time_sync_nodelet for info about subscribing to topics and their names

Signed-off-by: AhmedEbrahim <ahmed.a.d.ebrahim@gmail.com>

* fix(log-messages): adding info print in smart_pose_buffer indicating that there is a mismatch in timestamp

Signed-off-by: AhmedEbrahim <ahmed.a.d.ebrahim@gmail.com>

* fix(log-messages): removing info msg that is redundant with error msg

Signed-off-by: AhmedEbrahim <ahmed.a.d.ebrahim@gmail.com>

* fix(log-messages): lower some info msgs to debug

Signed-off-by: AhmedEbrahim <ahmed.a.d.ebrahim@gmail.com>

---------

Signed-off-by: AhmedEbrahim <ahmed.a.d.ebrahim@gmail.com>
Signed-off-by: kaigohirao <kaigo.hirao@proxima-ai-tech.com>
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request Jun 3, 2024
…6406)

* fix(log-messages): lower log level from info to debug in concatenate_and_time_sync_nodelet for info about subscribing to topics and their names

Signed-off-by: AhmedEbrahim <ahmed.a.d.ebrahim@gmail.com>

* fix(log-messages): adding info print in smart_pose_buffer indicating that there is a mismatch in timestamp

Signed-off-by: AhmedEbrahim <ahmed.a.d.ebrahim@gmail.com>

* fix(log-messages): removing info msg that is redundant with error msg

Signed-off-by: AhmedEbrahim <ahmed.a.d.ebrahim@gmail.com>

* fix(log-messages): lower some info msgs to debug

Signed-off-by: AhmedEbrahim <ahmed.a.d.ebrahim@gmail.com>

---------

Signed-off-by: AhmedEbrahim <ahmed.a.d.ebrahim@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:localization Vehicle's position determination in its environment. (auto-assigned) component:sensing Data acquisition from sensors, drivers, preprocessing. (auto-assigned) tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants