You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
always print auth messages in TL, regardless of verbosity (#11551)
Part of dotnet/sdk#47602
### Context
With `NuGetInteractive=true` being passed in more scenarios as of
dotnet/sdk#47226, the default verbosity for
`dotnet run` is now `minimal` for user-present scenarios - that's gross.
### Changes Made
Broadly what I'm trying to do here is not require passing `-v m` to
loggers to get the authentication-related messages. Right now `dotnet
run` does this and it's quite noisy compared to previous behavior. This
changed because recently I made the SDK start passing `--interactive`
when the user is at the keyboard (similar logic to Terminal Logger's own
enablement), and `dotnet run` has logic to force verbosity to minimal
when that happens so that the auth messages print where a user can see
them.
I kind of think of auth messages as messages that we should write
regardless of verbosity (like errors are), so this is a step down that
path for TL.
This change ensures that auth messages are always written in the TL
experience, as immediate messages.
If this is accepted, then the SDK could remove the [special case it
currently has](dotnet/sdk#47389).
### Testing
Updated snapshot baselines, manual testing.
### Notes
Copy file name to clipboardExpand all lines: src/Build.UnitTests/Snapshots/TerminalLogger_Tests.PrintBuildSummaryQuietVerbosity_FailedWithErrors.Linux.verified.txt
The plugin credential provider could not acquire credentials.Authentication may require manual action. Consider re-running the command with --interactive for `dotnet`, /p:NuGetInteractive="true" for MSBuild or removing the -NonInteractive switch for `NuGet`
Copy file name to clipboardExpand all lines: src/Build.UnitTests/Snapshots/TerminalLogger_Tests.PrintBuildSummaryQuietVerbosity_FailedWithErrors.OSX.verified.txt
The plugin credential provider could not acquire credentials.Authentication may require manual action. Consider re-running the command with --interactive for `dotnet`, /p:NuGetInteractive="true" for MSBuild or removing the -NonInteractive switch for `NuGet`
Copy file name to clipboardExpand all lines: src/Build.UnitTests/Snapshots/TerminalLogger_Tests.PrintBuildSummaryQuietVerbosity_FailedWithErrors.Windows.verified.txt
The plugin credential provider could not acquire credentials.Authentication may require manual action. Consider re-running the command with --interactive for `dotnet`, /p:NuGetInteractive="true" for MSBuild or removing the -NonInteractive switch for `NuGet`
directory/[1mfile[m(1,2,3,4): [33;1mwarning[m [33;1mAA0000[m: [CredentialProvider]ATTENTION: User interaction required.**********************************************************************To sign in, use a web browser to open the page https://devicelogin and enter the code XXXXXX to authenticate.**********************************************************************
3
-
project [33;1msucceeded with 2 warning(s)[m (0.2s)
directory/[1mfile[m(1,2,3,4): [33;1mwarning[m [33;1mAA0000[m: [CredentialProvider]ATTENTION: User interaction required.**********************************************************************To sign in, use a web browser to open the page https://devicelogin and enter the code XXXXXX to authenticate.**********************************************************************
directory/[1mfile[m(1,2,3,4): [33;1mwarning[m [33;1mAA0000[m: [CredentialProvider]ATTENTION: User interaction required.**********************************************************************To sign in, use a web browser to open the page https://devicelogin and enter the code XXXXXX to authenticate.**********************************************************************
3
-
project [33;1msucceeded with 2 warning(s)[m (0.2s)
directory/[1mfile[m(1,2,3,4): [33;1mwarning[m [33;1mAA0000[m: [CredentialProvider]ATTENTION: User interaction required.**********************************************************************To sign in, use a web browser to open the page https://devicelogin and enter the code XXXXXX to authenticate.**********************************************************************
directory/[1mfile[m(1,2,3,4): [33;1mwarning[m [33;1mAA0000[m: [CredentialProvider]ATTENTION: User interaction required.**********************************************************************To sign in, use a web browser to open the page https://devicelogin and enter the code XXXXXX to authenticate.**********************************************************************
3
-
project [33;1msucceeded with 2 warning(s)[m (0.2s)
directory/[1mfile[m(1,2,3,4): [33;1mwarning[m [33;1mAA0000[m: [CredentialProvider]ATTENTION: User interaction required.**********************************************************************To sign in, use a web browser to open the page https://devicelogin and enter the code XXXXXX to authenticate.**********************************************************************
0 commit comments