Skip to content

Commit 5e04233

Browse files
More cleanup of Elmah (#6429)
Clean Elmah
1 parent ea8c290 commit 5e04233

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/NuGetGallery.Core/Infrastructure/TableErrorLog.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,12 @@ public override string Log(Error error)
190190

191191
private void Obfuscate(Error error)
192192
{
193+
error.User = string.Empty;
194+
if (error.Form != null)
195+
{
196+
error.Form.Clear();
197+
}
198+
193199
//ServerVariables overrides requiring context from the http request should be handled in NuGetGallery.QuietLog
194200
var elmahException = error.Exception as ElmahException;
195201
if (elmahException != null)

0 commit comments

Comments
 (0)