/[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 54 by william, Thu Jul 12 16:31:47 2012 UTC revision 55 by william, Thu Jul 12 16:32:50 2012 UTC
# Line 28  namespace AnywhereTS Line 28  namespace AnywhereTS
28                  Logging.ATSAdminLog.Error("Encountered unhandled Exception, but the exception was null");                  Logging.ATSAdminLog.Error("Encountered unhandled Exception, but the exception was null");
29                  return;                  return;
30              }              }
31              if (e.ExceptionObject.GetType() == typeof(SqlException))              if (ex.GetType() == typeof(SqlException))
32              {              {
33                  SqlException sql_ex = (ex as SqlException);                  SqlException sql_ex = (ex as SqlException);
34                  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())))

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

  ViewVC Help
Powered by ViewVC 1.1.22