dotnet / sdk

Core functionality needed to create .NET Core projects, that is shared between Visual Studio and CLI
https://dot.net/core
MIT License
2.72k stars 1.07k forks source link

`dotnet restore -v:n` doesn't show the log #42835

Closed MarcoRossignoli closed 1 week ago

MarcoRossignoli commented 2 months ago

dotnet restore -v:n doesn't show the log.

If I disable the terminal logger is fine:

dotnet restore -v:n -tl:off

.NET SDK: Version: 9.0.100-dev Commit: b31edff014 Workload version: 9.0.100-manifests.89dac32e MSBuild version: 17.12.0-preview-24407-03+6bc91d5e2

cc: @mariam-abdulla

tmds commented 2 months ago

@baronfel @rainersigwald it's very unexpected that setting the verbosity flag does not actually cause the CLI to be more verbose.

tmds commented 2 months ago

@marcpopMSFT @baronfel @rainersigwald can we try to address this UX regression in the 9.0.1xx SDK?

baronfel commented 2 months ago

We respect the V flag now, it's just that TL has a different opinion on what's 'normal' than the older logger.

Try with -v detailed or -v diag and see if that shows the message you want. With TL we're trying to be much more restricted because people spam messages and the output isn't useful anymore. We want people to issue status and progress messages via the progress API we'll be working on over the medium term.

tmds commented 2 months ago

Try with -v detailed or -v diag and see if that shows the message you want

See https://github.com/dotnet/sdk/issues/43069#issuecomment-2340892513.

baronfel commented 1 week ago

Closing as we've made TL respect verbosity (at a detailed or diagnostic level).