From 636e9b3543bf4224f36da5c4c103143bdba2b0f5 Mon Sep 17 00:00:00 2001 From: Argo-Lenovo Date: Thu, 17 Nov 2016 22:48:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9BUG=EF=BC=9A=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=BA=93=E6=97=A5=E5=BF=97=E5=9C=A8=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E5=90=8E=E6=AD=A4=E5=A4=84=E4=B8=8D=E7=94=A8?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96UserId=E3=80=81UserIp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.Admin/App_Start/DBPublisher.cs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Bootstrap.Admin/App_Start/DBPublisher.cs b/Bootstrap.Admin/App_Start/DBPublisher.cs index 7ec5fde1..1d3d265a 100644 --- a/Bootstrap.Admin/App_Start/DBPublisher.cs +++ b/Bootstrap.Admin/App_Start/DBPublisher.cs @@ -4,7 +4,6 @@ using Longbow.ExceptionManagement; using Longbow.ExceptionManagement.Configuration; using System; using System.Collections.Specialized; -using System.Web; namespace Bootstrap.Admin { @@ -22,10 +21,6 @@ namespace Bootstrap.Admin public void Publish(Exception ex, NameValueCollection additionalInfo, ExceptionPublisherElement publisherElement) { if (publisherElement.Mode == PublisherMode.Off) return; - HttpContext context = HttpContext.Current; - additionalInfo["ErrorPage"] = context.Request.AppRelativeCurrentExecutionFilePath; - if (context.User != null) additionalInfo["UserId"] = context.User.Identity.Name; - additionalInfo["UserIp"] = context.Request.UserHostAddress; ExceptionHelper.Log(ex, additionalInfo); CacheManager.Clear(); }