-
Notifications
You must be signed in to change notification settings - Fork 642
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
Remove elmah table usage from gallery #10021
Conversation
[ReleasePrep][2024.05.28]RI of dev into main
FYI @Lanaparezanin |
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.
One less dependency 👏
PR against |
@@ -8,13 +8,10 @@ | |||
namespace NuGetGallery.Diagnostics | |||
{ | |||
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = true)] | |||
public sealed class SendErrorsToTelemetryAttribute | |||
: ElmahHandleErrorAttribute | |||
public sealed class SendErrorsToTelemetryAttribute : Attribute |
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.
Does this still get invoked without Elmah installed?
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.
Good catch--I'll remove this.
@@ -295,7 +293,7 @@ private static void BackgroundJobsPostStart(IAppConfiguration configuration) | |||
{ | |||
RestartSchedulerOnFailure = true | |||
}; | |||
_jobManager.Fail(e => ErrorLog.GetDefault(null).Log(new Error(e))); | |||
_jobManager.Fail(e => { /* fail silently */ }); |
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.
It may be possible to use Trace
here. I believe we have an App Insights trace listener. It might be worth having this "just in case".
Love the clean-up! |
The base branch was changed.
Should it include a change to admin index page to remove Elmah link? |
0ad8b19
to
03182fe
Compare
I'm wondering why |
@erdembayar @joelverhagen the file being unsigned broke the build, and it persists in the build to support Elmah migrations (backward and, in future, forward [edit: correction--there was no backward migration to remove table/sprocs, and I doubt we'll add it--forward would be a good cleanup step though]). I will review this in separate work to see if it can be removed without removing migration support. See https://github.com/NuGet/Engineering/issues/5495 for tracking. |
Partially addresses: https://github.com/NuGet/Engineering/issues/5480
We'll remove this table's usage as a part of the SDK migration effort.