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

Add logging to Handlers #65

Closed
wants to merge 2 commits into from
Closed

Add logging to Handlers #65

wants to merge 2 commits into from

Conversation

bartelink
Copy link
Collaborator

@bartelink bartelink commented Apr 20, 2020

Propulsion does not do logging of exceptions for failed handling calls (it counts them and gathers latencies only).

While it's technically correct to hence expect folk to Just Do Some Logging, this has proved a common stumbling block, so adding this boilerplate as a a starter.

This adds lightweight placeholder logging to the templates, though its recommended that it be replaced with relevant domain-specific logging instead

@bartelink
Copy link
Collaborator Author

(not merged yet because #2)

@bartelink
Copy link
Collaborator Author

needs some TODO comments in the emitted code to make people consider replacing with higher level logging

@bartelink
Copy link
Collaborator Author

@fnipo I'm strongly considering not doing this as jet/propulsion#60 means you now a) always supply a type Stats, which b) forces you to implement a HandleExn - the default impl of that in these templates will do this logging

@bartelink
Copy link
Collaborator Author

Abandoning in favor of #65

@bartelink bartelink closed this Apr 27, 2020
@bartelink bartelink deleted the add-logging branch April 27, 2020 09:44
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.

1 participant