Skip to content
This repository was archived by the owner on Aug 19, 2025. It is now read-only.

server: log on missing handler#26

Merged
decathorpe merged 3 commits intodecathorpe:mainfrom
jakobbraun:feature/server_log_missing_handler
Feb 28, 2025
Merged

server: log on missing handler#26
decathorpe merged 3 commits intodecathorpe:mainfrom
jakobbraun:feature/server_log_missing_handler

Conversation

@jakobbraun
Copy link
Contributor

Hi,

first of all thank you for creating and maintaining this very helpful project!

This PR adds a log message to dxr_server on unhandled method calls.
I used the rust standard log crate for that purpose. It's also used for example in reqwest so it's already in the dependency tree.

I find those logs very useful when working with the server and a not fully known counterpart.

Thank you in advance for checking the PR!

Copy link
Owner

@decathorpe decathorpe left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution, I think this makes a lot of sense, especially for development or debugging purposes! I left some comments.

@jakobbraun
Copy link
Contributor Author

Thanks for your feedback. I adjusted my code accordingly.
I decided to create a method instead of the constant to reduce duplication to a minimum.

@decathorpe
Copy link
Owner

Great, thanks! Looks good to me. I'll let the CI run and merge assuming everything is green.

Would it help you if I published this as a new release to crates.io?

@jakobbraun
Copy link
Contributor Author

Great. I'm not in a hurry. So don't do the release just for me.

@decathorpe decathorpe merged commit 4574127 into decathorpe:main Feb 28, 2025
5 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants