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

Add more informative log messages for cradle running #406

Merged
merged 1 commit into from
Jun 12, 2023

Conversation

fendor
Copy link
Collaborator

@fendor fendor commented Jun 11, 2023

Just addig more logging information, including environment variable information.

Copy link
Contributor

@michaelpj michaelpj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

ShellCommand sh -> pretty sh
RawCommand cmd args -> pretty cmd <+> pretty (unwords args)
]
<>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<>
line

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That adds an extra new line in the case where we have no environment variables.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can do vcat [doc1, doc2] if you like. Just that this one will try to lay it out on one line, which you probably don't want

src/HIE/Bios/Types.hs Outdated Show resolved Hide resolved
src/HIE/Bios/Types.hs Show resolved Hide resolved
src/HIE/Bios/Types.hs Show resolved Hide resolved
-- ------------------------------------------------

-- | Prettify 'CmdSpec', so we can show the command to a user
prettyCmdSpec :: CmdSpec -> String
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These aren't returning Doc because they're being used by other stuff, right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, exactly.

@fendor fendor merged commit 8aa2c95 into haskell:master Jun 12, 2023
25 checks passed
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