ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/AnywhereTS-MSSQL/trunk/TSControlPanel/Program.cs
(Generate patch)

Comparing trunk/TSControlPanel/Program.cs (file contents):
Revision 52 by william, Thu Jul 12 16:29:51 2012 UTC vs.
Revision 53 by william, Thu Jul 12 16:30:29 2012 UTC

# Line 26 | Line 26 | namespace AnywhereTS
26              Exception ex = (e.ExceptionObject as Exception);
27              if (ex == null)
28              {
29 <                Logging.ATSAdminLog.Error("Encountered unhandled Exception, but the exception was null");
29 >                Logging.TSControlPanelLog.Error("Encountered unhandled Exception, but the exception was null");
30                  return;
31              }
32              if (e.ExceptionObject.GetType() == typeof(SqlException))
# Line 34 | Line 34 | namespace AnywhereTS
34                  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())))
36                  {
37 <                    Logging.ATSAdminLog.Error("Encountered unhandled SqlException");
37 >                    Logging.TSControlPanelLog.Error("Encountered unhandled SqlException");
38                  }
39              }
40              else
41              {
42                  using (log4net.NDC.Push(string.Format("SqlException: MESSAGE={0}{1}Diagnostics:{1}{2}", ex.Message, System.Environment.NewLine, ex.ToString())))
43                  {
44 <                    Logging.ATSAdminLog.Error("Encountered unhandled Exception");
44 >                    Logging.TSControlPanelLog.Error("Encountered unhandled Exception");
45                  }
46              }
47          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines