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

Feature request: Log failed results on higher level #406

Open
walles opened this issue Dec 13, 2022 · 0 comments
Open

Feature request: Log failed results on higher level #406

walles opened this issue Dec 13, 2022 · 0 comments

Comments

@walles
Copy link

walles commented Dec 13, 2022

Could you log failed validations on warning level, and keep non-failed validations at debug?

If you have lots of successes and only a few failures this would make the output a lot easier to read.

openapi-cop/src/app.ts

Lines 157 to 160 in fbc58eb

debug(
`Validation results [${oasRequest.method} ${oasRequest.path}] ` +
JSON.stringify(validationResults, null, 2),
);

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

No branches or pull requests

1 participant