/[AnywhereTS-MSSQL]/trunk/TSAdminTool/Program.cs
ViewVC logotype

Diff of /trunk/TSAdminTool/Program.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 127 by william, Sat Jul 14 07:18:30 2012 UTC revision 128 by william, Sat Jul 14 13:01:52 2012 UTC
# Line 43  namespace AnywhereTS Line 43  namespace AnywhereTS
43              }              }
44              if (e.GetType() == typeof(SqlException))              if (e.GetType() == typeof(SqlException))
45              {              {
46                  SqlException sql_ex = (e as SqlException);                  SqlException sql_ex = (e.GetBaseException() as SqlException);
47                  List<string> strs = new List<string>();                  List<string> strs = new List<string>();
48                  using (log4net.NDC.Push(string.Format("{0}: ID={1} MESSAGE={2}{3}Diagnostics:{3}{4}", sql_ex.GetType().Name, sql_ex.Number.ToString(), sql_ex.Message, System.Environment.NewLine, sql_ex.ToString())))                  using (log4net.NDC.Push(string.Format("{0}: ID={1} MESSAGE={2}{3}Diagnostics:{3}{4}", sql_ex.GetType().Name, sql_ex.Number.ToString(), sql_ex.Message, System.Environment.NewLine, sql_ex.ToString())))
49                  {                  {
# Line 83  namespace AnywhereTS Line 83  namespace AnywhereTS
83              }              }
84              else              else
85              {              {
86                    e = e.GetBaseException();
87                  List<string> strs = new List<string>();                  List<string> strs = new List<string>();
88                  using (log4net.NDC.Push(string.Format("{0}: MESSAGE={1}{2}Diagnostics:{2}{3}", e.GetType().Name, e.Message, System.Environment.NewLine, e.ToString())))                  using (log4net.NDC.Push(string.Format("{0}: MESSAGE={1}{2}Diagnostics:{2}{3}", e.GetType().Name, e.Message, System.Environment.NewLine, e.ToString())))
89                  {                  {

Legend:
Removed from v.127  
changed lines
  Added in v.128

  ViewVC Help
Powered by ViewVC 1.1.22