Browse Source

首页报错添加日志

master
lvzb 1 year ago
parent
commit
0829aca648
  1. 2
      SCP/Global.asax.cs

2
SCP/Global.asax.cs

@ -76,7 +76,7 @@ namespace SCP
String errorMsg = objExp.InnerException == null ? objExp.GetBaseException().Message : objExp.InnerException.Message+ objExp.InnerException.StackTrace;
HttpContext.Current.Server.ClearError();
LogHelper.Writlog(LogHelper.LogType.Error, typeof(Global), "Application_Error", objExp.Message+ "InnerMess:" + objExp.InnerException.Message + "InnerST:" + objExp.InnerException.StackTrace);
ShowError(errorCode, errorMsg, HttpContext.Current);
}
}

Loading…
Cancel
Save