-
Notifications
You must be signed in to change notification settings - Fork 240
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
Change debug!
to trace!
to reduce logging noise
#2284
Conversation
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.
Glad I saw this, was just going to start working on this myself 😁 Thanks!
@@ -65,18 +68,18 @@ pub fn compat_timer_arm_us(ets_timer: *mut ets_timer, us: u32, repeat: bool) { | |||
timer.active = true; | |||
timer.periodic = repeat; | |||
} else { | |||
debug!("timer_arm_us {:x} not found", ets_timer as usize); | |||
trace!("timer_arm_us {:x} not found", ets_timer as usize); |
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.
This probably should remain at a higher level
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.
these are all quite frequent (with BLE at least) currently while things work fine -maybe they should be kept as debug and investigated
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.
I guess it's fine if they call disarm
or done
on a timer we don't know (yet) about
I'm not too sure if it's the same for arm
? In theory if they never did setfn
we cannot/don't need to do much - or maybe we should just initialize the timer in arm
anyway with a no-op callback
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.
Yeah maybe if these timers are statically allocated...
timer.active = false; | ||
} else { | ||
debug!("timer_disarm {:x} not found", ets_timer as usize); | ||
trace!("timer_disarm {:x} not found", ets_timer as usize); |
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.
This one, too
timer.active = false; | ||
|
||
(*ets_timer).priv_ = core::ptr::null_mut(); | ||
(*ets_timer).expire = 0; | ||
|
||
TIMERS.swap_remove(idx); | ||
} else { | ||
debug!("timer_done {:x} not found", ets_timer as usize); | ||
trace!("timer_done {:x} not found", ets_timer as usize); |
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.
Same
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.
Thanks!
Thank you for your contribution!
We appreciate the time and effort you've put into this pull request.
To help us review it efficiently, please ensure you've gone through the following checklist:
Submission Checklist 📝
cargo xtask fmt-packages
command to ensure that all changed code is formatted correctly.CHANGELOG.md
in the proper section.Extra:
Pull Request Details 📖
Description
Fixes #2282 - most of these are just noise and irrelevant for users
This doesn't deserve a changelog entry
Testing
Examples still work