-
Notifications
You must be signed in to change notification settings - Fork 101
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
Make use of time source type for throttling logs #183
Changes from 4 commits
77d0072
e1b4344
82f76c1
62ab5e2
bbe16af
0815d74
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,11 +54,12 @@ | |
skipfirst_doc_lines = [ | ||
'The first log call is being ignored but all subsequent calls are being processed.'] | ||
throttle_params = OrderedDict(( | ||
('time_source_type', 'The time source type of the time to be used'), | ||
('get_time_point_value', 'Function that returns rcutils_ret_t and expects a ' | ||
'rcutils_time_point_value_t pointer.'), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @BMarchi nit: I wonder if There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Well, "time source" has a very specific meaning in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So should I call it then |
||
('duration', 'The duration of the throttle interval'), | ||
)) | ||
throttle_args = { | ||
'condition_before': 'RCUTILS_LOG_CONDITION_THROTTLE_BEFORE(time_source_type, duration)', | ||
'condition_before': 'RCUTILS_LOG_CONDITION_THROTTLE_BEFORE(get_time_point_value, duration)', | ||
'condition_after': 'RCUTILS_LOG_CONDITION_THROTTLE_AFTER'} | ||
throttle_doc_lines = [ | ||
'Log calls are being ignored if the last logged message is not longer ago than the specified ' | ||
|
@@ -168,7 +169,7 @@ def __init__(self, *, params=None, args=None, doc_lines=None): | |
}, **name_args | ||
}, | ||
doc_lines=skipfirst_doc_lines + throttle_doc_lines + name_doc_lines)), | ||
)) | ||
)) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This looks like an unrelated and unnecessary change? |
||
|
||
|
||
def get_macro_parameters(feature_combination): | ||
|
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.
@BMarchi nit: ref that function