Skip to content

Write loaded config info to stderr instead of stdout #42

Merged
georgefst merged 1 commit intofourmolu:masterfrom
ollef:master
Oct 2, 2020
Merged

Write loaded config info to stderr instead of stdout #42
georgefst merged 1 commit intofourmolu:masterfrom
ollef:master

Conversation

@ollef
Copy link
Copy Markdown
Contributor

@ollef ollef commented Oct 2, 2020

Otherwise this becomes the first line of output when in stdout mode.

An alternative would be to use stderr (perhaps only when in stdout mode), if it's important information is shown prominently.

@georgefst
Copy link
Copy Markdown
Collaborator

Ah, good catch - I think I've only ever used the inplace mode (-i), or editor integration, but I should've thought of this.

I would like this to be displayed prominently, so you could you possibly change this (and, less importantly, line 306) to always print to stderr?

Otherwise this becomes the first line of output when in stdout mode.
@ollef ollef changed the title Use 'printDebug' to print loaded config info Write loaded config info to stderr instead of stdout Oct 2, 2020
@ollef
Copy link
Copy Markdown
Contributor Author

ollef commented Oct 2, 2020

Done.

@georgefst georgefst merged commit 51a1652 into fourmolu:master Oct 2, 2020
@kukimik kukimik mentioned this pull request Aug 7, 2021
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