Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

fix(log-messages): reduce excessive log messages #224

Conversation

ahmeddesokyebrahim
Copy link
Contributor

@ahmeddesokyebrahim ahmeddesokyebrahim commented Dec 26, 2023

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.

Fixes autowarefoundation/autoware.universe#5539

Related links

More details in the issue.

Relevant PRS

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
    • To be addressed in another PR
  • 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.

Copy link

codecov bot commented Jan 13, 2024

Codecov Report

Attention: 30 lines in your changes are missing coverage. Please review.

Comparison is base (d3ff59a) 9.71% compared to head (3515fb0) 9.66%.

Files Patch % Lines
tmp/lanelet2_extension/lib/visualization.cpp 0.00% 17 Missing ⚠️
tmp/lanelet2_extension/lib/query.cpp 0.00% 11 Missing ⚠️
tmp/lanelet2_extension_python/src/utility.cpp 0.00% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##            main    #224      +/-   ##
========================================
- Coverage   9.71%   9.66%   -0.06%     
========================================
  Files         40      40              
  Lines       3097    3115      +18     
  Branches    1387    1399      +12     
========================================
  Hits         301     301              
- Misses      2376    2394      +18     
  Partials     420     420              
Flag Coverage Δ *Carryforward flag
differential 8.14% <0.00%> (?)
total 9.75% <ø> (+0.03%) ⬆️ Carriedforward from e9b18cb

*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.

@ahmeddesokyebrahim ahmeddesokyebrahim force-pushed the autoware/common/5539-fix-log-messages branch from 845d0a6 to f7c5d1e Compare January 19, 2024 14:48
Ahmed Ebrahim and others added 4 commits February 2, 2024 09:11
…olygon: linestring x must have more than different 3 points! (size is 2). Failed to convert to polygon." and "pedestrian marking x failed conversion."

Signed-off-by: AhmedEbrahim <[email protected]>
@ahmeddesokyebrahim ahmeddesokyebrahim force-pushed the autoware/common/5539-fix-log-messages branch from f4d9659 to e9b18cb Compare February 2, 2024 11:42
@ahmeddesokyebrahim ahmeddesokyebrahim changed the title fix(log-messages): Reduce excessive log messages in Autoware fix(log-messages): reduce excessive log messages Feb 7, 2024
…AllPedestrianMarkings to getAllPedestrianPolygonMarkings and getAllPedestrianLineMarkings

Signed-off-by: AhmedEbrahim <[email protected]>
@ahmeddesokyebrahim ahmeddesokyebrahim force-pushed the autoware/common/5539-fix-log-messages branch from 775c6bc to 3515fb0 Compare February 7, 2024 02:07
@ahmeddesokyebrahim ahmeddesokyebrahim marked this pull request as ready for review February 7, 2024 02:10
@xmfcx
Copy link
Contributor

xmfcx commented Feb 12, 2024

With this PR, visualization::pedestrianMarkingsAsMarkerArray is separated into:

  • visualization::pedestrianPolygonMarkingsAsMarkerArray
  • visualization::pedestrianLineMarkingsAsMarkerArray

I've checked the codebase and all the usages of pedestrianMarkingsAsMarkerArray are updated with the trailing PRs.

To avoid warnings and be able to visualize lines along with polygons too.

This is before this change:
Screenshot from 2024-02-12 15-11-17

This is after this change:
Screenshot from 2024-02-12 15-06-32

Pay attention to marked areas:
marked

@xmfcx
Copy link
Contributor

xmfcx commented Feb 12, 2024

@kosuke55
@soblin
@Motsu-san
@mitsudome-r
@takayuki5168

If you don't have any concerns, I will merge this along with the other 2 PRs:

@xmfcx xmfcx merged commit 119ea82 into autowarefoundation:main Feb 12, 2024
18 of 21 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reduce excessive error and warning logs on Autoware launch
2 participants