refactor: replace console.warn with process.emitWarning by lamweili · Pull Request #954 · jprichardson/node-fs-extra · GitHub
Skip to content

refactor: replace console.warn with process.emitWarning - #954

Merged
RyanZim merged 1 commit into
jprichardson:masterfrom
lamweili:refactor/warning-mechanism
Apr 16, 2022
Merged

RyanZim merged 1 commit into
jprichardson:masterfrom
lamweili:refactor/warning-mechanism

Conversation

@lamweili

@lamweili lamweili commented Apr 8, 2022 •

Copy link
Copy Markdown
Contributor

To have consistent warnings from #953 (comment) by @JPeer264

Yes process.emitWarning sounds also like a great option to add (just my opinion on it). However, a separate PR would be nice if you want to go the extra mile as we squash our PRs. @manidlou @RyanZim @jprichardson any objections?

Prints out via process.emitWarning in the following format:

image

@lamweili
lamweili marked this pull request as draft April 8, 2022 17:21
@lamweili
lamweili marked this pull request as ready for review April 8, 2022 17:53
@lamweili
lamweili marked this pull request as draft April 8, 2022 17:55
@lamweili
lamweili marked this pull request as ready for review April 8, 2022 17:55
Signed-off-by: Lam Wei Li <peteriman@mail.com>
@RyanZim

RyanZim commented Apr 8, 2022

Copy link
Copy Markdown
Collaborator

@lamweili

lamweili commented Apr 8, 2022 •

Copy link
Copy Markdown
Contributor Author

@JPeer264 JPeer264 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I am fine with either. Thanks for the changes and your efforts :)

@RyanZim
RyanZim merged commit baa9934 into jprichardson:master Apr 16, 2022
@lamweili
lamweili deleted the refactor/warning-mechanism branch April 17, 2022 05:46
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.

3 participants