Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up --verbosity minimal logging #263

Merged
merged 1 commit into from
Feb 9, 2016
Merged

Clean up --verbosity minimal logging #263

merged 1 commit into from
Feb 9, 2016

Conversation

joelverhagen
Copy link
Member

  1. Move the Committing restore... to Information level (not Minimal).
  2. Do not show information summary at Minimal level (that is, config files used, feeds used, and install counts).
  3. Add Minimal to the --verbosity help text.

This is responding to NuGet/Home#2069.

@emgarten @zhili1208 @deepakaravindr

@@ -247,7 +249,7 @@ public static int Main(string[] args)
}
catch (Exception e)
{
EnsureLog(verbosity);
EnsureLog(GetLogLevel(verbosity));
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this call redundant? I saw it is already invoked as the first thing on the execution body. Also, can we just call once right after we retrieve the verbosity above?
I am wiring up the "push", so need to understand this part better.

Copy link
Member Author

Choose a reason for hiding this comment

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

If any exception occurs outside of the restore command or before the restore command is executed, this EnsureLog is necessary. Note that this has to be run after app.Execute which takes the string[] args and parses them in to the various CommandOption instances.

@emgarten
Copy link
Member

emgarten commented Feb 9, 2016

:shipit:

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.

4 participants