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

Demote process output to Debug severity #348

Merged
merged 2 commits into from
May 7, 2022

Conversation

michaelpj
Copy link
Contributor

This is perhaps a more controversial change. The process output is quite
noisy, and arguably not of interest unless you're debugging an issue.

The counterargument is that if something does go wrong with running the
cradle command, it's useful to see it. Perhaps we could collect the
output and only emit it on failure?

This is perhaps a more controversial change. The process output is quite
noisy, and arguably not of interest unless you're debugging an issue.

The counterargument is that if something *does* go wrong with running the
cradle command, it's useful to see it. Perhaps we could collect the
output and only emit it on failure?
@fendor
Copy link
Collaborator

fendor commented May 6, 2022

IIRC, aren't these logs used for displaying progress messages in VSCode? (Maybe I am mistaken)

@michaelpj
Copy link
Contributor Author

Uh. I have no idea. That would be... surprising.

@fendor
Copy link
Collaborator

fendor commented May 6, 2022

Hm, maybe not. Maybe we should add a different Constructor in this case? Such as CradleLoadingProcess?
The idea being that we can actually use these logs to show something to the user.

@michaelpj
Copy link
Contributor Author

Okay, I checked. As far as I can tell, at the moment these go via hslogger, and the hslogger output is just logged, and not used for anything else. So I think we're safe.

Maybe we should add a different Constructor in this case? Such as CradleLoadingProcess?

Yeah, good idea.

@michaelpj
Copy link
Contributor Author

Added a special constructor for it.

@fendor fendor merged commit 6f61038 into haskell:master May 7, 2022
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.

None yet

2 participants