Browse Source

Removed logging in application_end_request for http headers errors

tags/3.0.0
Teknikode 3 years ago
parent
commit
ed9a12771b
1 changed files with 5 additions and 2 deletions
  1. 5
    2
      Teknik/Global.asax.cs

+ 5
- 2
Teknik/Global.asax.cs View File

@@ -69,8 +69,11 @@ namespace Teknik
}
catch (Exception ex)
{
// Just log it
Logging.Logger.WriteEntry(Logging.LogLevel.Warning, "Error in Application_EndRequest", ex);
if (!ex.Message.Contains("Server cannot append header after HTTP headers have been sent"))
{
// Just log it
Logging.Logger.WriteEntry(Logging.LogLevel.Warning, "Error in Application_EndRequest", ex);
}
}
}


Loading…
Cancel
Save