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

Diff of /trunk/TSControlPanel/Program.cs

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

revision 53 by william, Thu Jul 12 16:30:29 2012 UTC revision 55 by william, Thu Jul 12 16:32:50 2012 UTC
# Line 29  namespace AnywhereTS Line 29  namespace AnywhereTS
29                  Logging.TSControlPanelLog.Error("Encountered unhandled Exception, but the exception was null");                  Logging.TSControlPanelLog.Error("Encountered unhandled Exception, but the exception was null");
30                  return;                  return;
31              }              }
32              if (e.ExceptionObject.GetType() == typeof(SqlException))              if (ex.GetType() == typeof(SqlException))
33              {              {
34                  SqlException sql_ex = (ex as SqlException);                  SqlException sql_ex = (ex as SqlException);
35                  using (log4net.NDC.Push(string.Format("SqlException: ID={0} MESSAGE={1}{2}Diagnostics:{2}{3}", sql_ex.Number.ToString(), sql_ex.Message, System.Environment.NewLine, sql_ex.ToString())))                  using (log4net.NDC.Push(string.Format("SqlException: ID={0} MESSAGE={1}{2}Diagnostics:{2}{3}", sql_ex.Number.ToString(), sql_ex.Message, System.Environment.NewLine, sql_ex.ToString())))
# Line 39  namespace AnywhereTS Line 39  namespace AnywhereTS
39              }              }
40              else              else
41              {              {
42                  using (log4net.NDC.Push(string.Format("SqlException: MESSAGE={0}{1}Diagnostics:{1}{2}", ex.Message, System.Environment.NewLine, ex.ToString())))                  using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", ex.Message, System.Environment.NewLine, ex.ToString())))
43                  {                  {
44                      Logging.TSControlPanelLog.Error("Encountered unhandled Exception");                      Logging.TSControlPanelLog.Error("Encountered unhandled Exception");
45                  }                  }

Legend:
Removed from v.53  
changed lines
  Added in v.55

  ViewVC Help
Powered by ViewVC 1.1.22