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

refactor(httpapi): logger belongs to endpoint #1003

Merged
merged 3 commits into from
Dec 9, 2022
Merged

Conversation

bassosimone
Copy link
Contributor

@bassosimone bassosimone commented Dec 9, 2022

Checklist

Description

This diff changes httpapi Endpoint and Descriptor such that the logger field is part of the Endpoint rather than Descriptor.

This changes makes sense because the logger to use should be the same for every API call. What matters, instead, is whether to log bodies, which remains a property of the API Descriptor.

While I authored this diff originally as part of the work done in #997, it seems it's required in #1002 as well.

Hence, the reference issue is ooni/probe#2379.

This diff changes httpapi Endpoint and Descriptor such that the
logger field is part of the Endpoint rather than Descriptor.

This changes makes sense because the logger to use should be the
same for every API call. What matters, instead, is whether to log
bodies, which remains a property of the API Descriptor.

While I authored this diff originally as part of the work done
in #997, it seems it's
required in #1002 as well.

Hence, the reference issue is ooni/probe#2379.
@bassosimone bassosimone requested a review from hellais as a code owner December 9, 2022 09:09
@bassosimone bassosimone merged commit cd868c7 into master Dec 9, 2022
@bassosimone bassosimone deleted the httpapi-fixes branch December 9, 2022 09:26
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