react-native-windows icon indicating copy to clipboard operation
react-native-windows copied to clipboard

`run-windows` NuGet restoration code does not respect verbosity settings

Open NickGerleman opened this issue 4 years ago • 4 comments

In default, non-verbose mode, we print build information to the console, but only related to NuGet package restoration. Any logging done for this should respect verbosity flags used by the rest of the CLI (defaulting to logging minimal information to console apart from errors)

image

NickGerleman avatar Feb 10 '22 06:02 NickGerleman

There's a CLI architecture issue that intersects with this issue. We do not have a centralized logger. This makes respecting verbosity requirements ad-hoc, on the implementor. E.g. there are lots of adhoc options.verbose, isVerbose, logVerboseExitCode(), etc.

We should ideally instead have something like logger.brief(), logger.warning(), logger.error(), and use eslint to ban console.log, console.error, etc. To enforce verbosity is consistent and causing less flow-control complexity.

NickGerleman avatar Feb 10 '22 09:02 NickGerleman

This might be a little more urgent due to how it changes the run-windows golden path.

jonthysell avatar Feb 10 '22 19:02 jonthysell

@JunielKatarn - this is still tagged for the 0.68 release. Given that 0.68 is out at this point, are you planning to backport the change or submit to a newer release?

Khalef1 avatar Apr 08 '22 19:04 Khalef1

I plan to backport, if approved.

JunielKatarn avatar Apr 08 '22 23:04 JunielKatarn