Skip to content

Reduce console spew when creating secrets in user-jwts#42542

Merged
captainsafia merged 1 commit into
dotnet:mainfrom
captainsafia:reduce-output-spew
Jul 6, 2022
Merged

Reduce console spew when creating secrets in user-jwts#42542
captainsafia merged 1 commit into
dotnet:mainfrom
captainsafia:reduce-output-spew

Conversation

@captainsafia

Copy link
Copy Markdown
Contributor

Closes #42474.

@captainsafia captainsafia requested a review from a team July 1, 2022 18:45
@captainsafia captainsafia requested a review from Pilchie as a code owner July 1, 2022 18:45
@ghost ghost added the area-commandlinetools Includes: Command line tools, dotnet-dev-certs, dotnet-user-jwts, and OpenAPI label Jul 1, 2022
{
var resolver = new ProjectIdResolver(reporter, projectFilePath);
var resolver = new ProjectIdResolver(NullReporter.Singleton, projectFilePath);
var id = resolver.Resolve(projectFilePath, configuration: null);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why not pass in a higher configuration level by default and then we can have an option like user-secrets to have a different config level to get verbose logs:
https://source.dot.net/#dotnet-user-secrets/CommandLineOptions.cs,39

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We don't currently have a verbose flag on the tool, but even if we did I think we'd end up passing either a ConsoleReporter or NullReporter here depending on whether or not that verbose flag is set.

@DamianEdwards

Copy link
Copy Markdown
Member

spew 😄

@captainsafia captainsafia merged commit 92834c8 into dotnet:main Jul 6, 2022
@ghost ghost added this to the 7.0-preview7 milestone Jul 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-commandlinetools Includes: Command line tools, dotnet-dev-certs, dotnet-user-jwts, and OpenAPI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clean up output spew when creating token and secret for the first time

3 participants