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

Export function to doisplay packet content #37

Merged
merged 1 commit into from
Apr 5, 2023
Merged

Export function to doisplay packet content #37

merged 1 commit into from
Apr 5, 2023

Conversation

thierry-f-78
Copy link
Contributor

This patch split PrintPacket in two parts, the second part is DescribePacket a function which describe the packet content without recursion, indentation, nor jump line.

The goal is providing a simple way logging detailled protocol errors on speciafic output (other than io.Stdout)

Obviously this patch doesn't break the API or the behaviour of the project.

Copy link
Contributor

@johnweldon johnweldon left a comment

Choose a reason for hiding this comment

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

might need to be go fmt'ed, but otherwise looks great, thanks!

This patch split PrintPacket in two parts, the second part
is DescribePacket a function which describe the packet content
without recursion, indentation, nor jump line.

The goal is providing a simple way logging detailled protocol
errors on speciafic output (other than io.Stdout)
@thierry-f-78
Copy link
Contributor Author

That's done, I think the commit will pass CI.

@johnweldon
Copy link
Contributor

Sorry, can you try pushing a new commit to this so that the updated actions can run? (If that doesn't work we can just merge this, and try to fix the actions later)

@thierry-f-78
Copy link
Contributor Author

Hi, I just push in force, and the PR is up to date with my change.

It seems the linter fails because it panics (itself). I attach a screenshot.

Screenshot 2023-04-05 at 07 39 20

@johnweldon johnweldon merged commit 3c992f0 into go-asn1-ber:master Apr 5, 2023
@johnweldon
Copy link
Contributor

Thank you

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.

2 participants