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

Lower logging level in process_incoming_bytes of stream_buffer #40

Closed
wants to merge 1 commit into from

Conversation

gatlinnewhouse
Copy link

I went with trace but could also be debug instead.

Summary
Lower the logging levels to trace instead of error

Related Issues
Closes #27

Proposed Changes

  • Use trace per issue's suggestion

Checklist

  • Tests pass locally
  • Documentation updated if needed (I think they are)

@CLAassistant
Copy link

CLAassistant commented Feb 10, 2025

CLA assistant check
All committers have signed the CLA.

Copy link
Collaborator

@lukipuki lukipuki left a comment

Choose a reason for hiding this comment

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

Can you please add motivation for this change? I'd really like to know if the received data has missing header bytes or other problems. I'd rarely turn on trace but error logging is always on.

If there's demand we could add a switch to downgrade the errors to trace! but I think most people need the information.

@gatlinnewhouse
Copy link
Author

gatlinnewhouse commented Feb 11, 2025

Then close #27 as it's not an issue, and we can choose to not merge this

@lukipuki
Copy link
Collaborator

I'd still keep #27, if some data (debug logs) is expected to come from the client we should handle it better, but downgrading log level is not it. I'll look into it later.

@lukipuki lukipuki closed this Feb 19, 2025
@gatlinnewhouse
Copy link
Author

Sounds good. I have been using it as a library in another project which redirects those macros to system logs. Thanks!

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.

Error in the handling of the serial buffer
3 participants