-
Notifications
You must be signed in to change notification settings - Fork 693
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
Plugins: propagate plugin exception #2838
Conversation
@@ -87,9 +87,9 @@ Invoke-BuildStep 'Cleaning package cache' { | |||
-skip:(-not $CI) ` | |||
-ev +BuildErrors | |||
|
|||
Invoke-BuildStep 'Running /t:RestoreVS15' { | |||
Invoke-BuildStep 'Running /t:RestoreVS' { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes were overlooked by #2832.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My bad, we don't use these scripts in our build at all, so I didn't even think about them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great.
👏
@@ -87,9 +87,9 @@ Invoke-BuildStep 'Cleaning package cache' { | |||
-skip:(-not $CI) ` | |||
-ev +BuildErrors | |||
|
|||
Invoke-BuildStep 'Running /t:RestoreVS15' { | |||
Invoke-BuildStep 'Running /t:RestoreVS' { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My bad, we don't use these scripts in our build at all, so I didn't even think about them.
5e57944
to
832e288
Compare
Resolve NuGet/Home#8057.
Ideally,
NuGet.Common.ILogger
would have a method that would take an exception and log the callstack depending on the logging verbosity level:However, that change is a large, breaking change and out of scope for fixing NuGet/Home#8057.
As it currently stands, it's left to the caller of an
ILogger
implementation to determine whether or not to log a callstack based on the logging verbosity level, but the logging verbosity level is unavailable to the caller.The simple solution now is to log the callstack with
ILogger.LogDebug(…)
and leave it to the logger to decide whether or not to log debug events.