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

Log an error if update() call returns ERROR #1969

Open
wants to merge 1 commit into
base: humble
Choose a base branch
from

Conversation

christophfroehlich
Copy link
Contributor

As we discussed in #1873: On humble we do not take any action if the update call of a controller returns ERROR. As we don't want to break the behavior on humble, I suggest adding at least a log output.

I'm just not sure if we should just print it once, throttled, or on every call.

Closes #1873

@christophfroehlich christophfroehlich changed the title Give an error output Log an error if update() call returns ERROR Dec 21, 2024
@christophfroehlich christophfroehlich linked an issue Dec 21, 2024 that may be closed by this pull request
Copy link

codecov bot commented Dec 21, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 62.91%. Comparing base (5c5a171) to head (0430bd4).

Files with missing lines Patch % Lines
controller_manager/src/controller_manager.cpp 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           humble    #1969      +/-   ##
==========================================
- Coverage   62.92%   62.91%   -0.01%     
==========================================
  Files         109      109              
  Lines       12504    12505       +1     
  Branches     8481     8482       +1     
==========================================
  Hits         7868     7868              
- Misses        852      853       +1     
  Partials     3784     3784              
Flag Coverage Δ
unittests 62.91% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
controller_manager/src/controller_manager.cpp 67.00% <0.00%> (-0.06%) ⬇️

Copy link
Member

@saikishor saikishor left a comment

Choose a reason for hiding this comment

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

The problem with the _ONCE is it will print once for the first controller and will never print it again.

@saikishor
Copy link
Member

@christophfroehlich like you. I'm also not sure which is the best option for this. Logging every time might spam a bit, and with throttle might miss some logs. Once might not be a good one here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Controllers not deactivated on error in update on Humble
2 participants