Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

Add checks for endpoint support and contract requirements #113

Merged
merged 4 commits into from
Jan 31, 2021

Conversation

epenet
Copy link
Collaborator

@epenet epenet commented Jan 29, 2021

Relates to #51

@epenet epenet added the enhancement New feature or request label Jan 29, 2021
@epenet
Copy link
Collaborator Author

epenet commented Jan 29, 2021

@oncleben31 this makes use of your contract implementation from hacf-fr/renault-api#145

Hopefully it should remove the ERROR and replace it with a WARNING.
Do you think this is OK? or should we go one step lower and replace it with INFO?

@oncleben31
Copy link
Member

From my experience it's more an INFO. But I understood that it could be a way to notify an expired contract not renewed by error. In this second case it is more a warning.
What do you think about INFO if the contract is missing and WARNING if the contract is expired ?

@epenet
Copy link
Collaborator Author

epenet commented Jan 30, 2021

INFO on "support_endpoint"
WARNING on "has_contract"

I don't think it's possible to differentiate easily between contract expired and contract missing

@epenet
Copy link
Collaborator Author

epenet commented Jan 30, 2021

INFO on both...
@oncleben31 are you happy with this latest commit?

@epenet epenet merged commit 04db8fc into master Jan 31, 2021
@epenet epenet deleted the check-endpoint branch January 31, 2021 08:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants