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

feat: add notices to contract publishing response, with intent to rem… #430

Merged
merged 2 commits into from
May 16, 2021

Conversation

bethesque
Copy link
Member

@bethesque bethesque commented May 15, 2021

I'm replacing the "logs" in the contract publishing response with "notices", so as to be consistent with the notices in the "pacts for verification" endpoint, and so that there can be a better representation of intent behind the messages. The log messages with a level of warn, info, debug will be replaced with notices with type of success, info, warning, error and debug (in the style of bootstrap alerts).

I'm mapping success to green, warning to yellow, error to red. info and debug are uncoloured. Not 100% sure about the need for debug, but wondering if things get too noisy, that might be able to be turned off. I'm currently using warning for the "you should do this next" kind of notices, but I'm going to think of a better name for that soon, which I'm thinking might map to blue.

Haven't removed the logs yet, so as to keep the pacts green, but will once this is out in prod.

@bethesque bethesque requested a review from uglyog May 15, 2021 11:19
@bethesque bethesque merged commit dacbe90 into master May 16, 2021
@bethesque bethesque deleted the feat/logs-to-notices branch May 16, 2021 23:10
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