Skip to content

Improve logging on rejected packets #998

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

Merged

Conversation

thomaseizinger
Copy link
Contributor

I spent a bunch of time debugging why my packets weren't processed by smoltcp. After I finally found the code that performs these checks, I figured that these boolean conditions were quite hard to understand, so I split them up. This made it quite easy to add log statements that should guide the user to the problem as to why their packets aren't being processed.

@thomaseizinger thomaseizinger force-pushed the chore/better-logging-rejected-packets branch from 0bbb00f to c5b706a Compare October 16, 2024 04:02
Copy link
Contributor

@crawford crawford left a comment

Choose a reason for hiding this comment

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

Nice! This looks really helpful.

@thvdveld
Copy link
Contributor

Thank you, this is indeed helpful!

@thvdveld thvdveld added this pull request to the merge queue Oct 16, 2024
Merged via the queue into smoltcp-rs:main with commit 45fa984 Oct 16, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants