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

conan-center hooks 'final report' #279

Open
ericriff opened this issue Mar 3, 2021 · 2 comments
Open

conan-center hooks 'final report' #279

ericriff opened this issue Mar 3, 2021 · 2 comments

Comments

@ericriff
Copy link
Contributor

ericriff commented Mar 3, 2021

Having the conan-center hook activated is super useful to find common errors / tidy up your code, but under some circumstances it is extremely chatty which makes easy to miss an error / warning since they fly by so quickly and get buried under a million lines of log.

I don't know if this is possible but I would like to have a 'final report' in my console after a conan create execution that tells me if the hook detected errors or not (and even better list the errors).

Another thing would be to make the hook display only warnings and errors, and not the 'OK' lines.

Thanks!

@uilianries
Copy link
Member

Conan-center hooks uses output.success which a regular message output. Conan uses it a lot, se we can't set a global log level. What we could is adding an env var to filter it.

@uilianries
Copy link
Member

It can be related to conan-io/conan#8570. We provide a final report, we would need a post command hook. For now, we can't provide a final report, as depending which conan command we run, it will or not execute a step.

What we do now, is silencing INFO and printing only WARNING and ERROR.

uilianries added a commit to uilianries/hooks that referenced this issue Mar 11, 2021
Signed-off-by: Uilian Ries <uilianries@gmail.com>
uilianries added a commit to uilianries/hooks that referenced this issue Mar 11, 2021
Signed-off-by: Uilian Ries <uilianries@gmail.com>
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

2 participants