Skip to content

Commit

Permalink
More cleanup of Elmah (#6429)
Browse files Browse the repository at this point in the history
Clean Elmah
  • Loading branch information
cristinamanum committed Sep 18, 2018
1 parent ea8c290 commit 5e04233
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/NuGetGallery.Core/Infrastructure/TableErrorLog.cs
Expand Up @@ -190,6 +190,12 @@ public override string Log(Error error)

private void Obfuscate(Error error)
{
error.User = string.Empty;
if (error.Form != null)
{
error.Form.Clear();
}

//ServerVariables overrides requiring context from the http request should be handled in NuGetGallery.QuietLog
var elmahException = error.Exception as ElmahException;
if (elmahException != null)
Expand Down

0 comments on commit 5e04233

Please sign in to comment.