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

Diff of /trunk/TSAdminTool/Database.cs

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

revision 127 by william, Sat Jul 14 11:14:09 2012 UTC revision 128 by william, Sat Jul 14 13:01:52 2012 UTC
# Line 196  namespace AnywhereTS Line 196  namespace AnywhereTS
196                  #endregion                  #endregion
197                  return bContinue;                  return bContinue;
198              }              }
199    
200              catch (Exception ex)              catch (Exception ex)
201              {              {
202                  if (ErrorInfo == null)                  if (ErrorInfo == null)
203                  {                  {
204                      ErrorInfo = ex;                      ErrorInfo = ex.GetBaseException();
205                      using (log4net.NDC.Push(string.Format("{0}: MESSAGE={1}{2}Diagnostics:{2}{3}", ex.GetType().Name, ex.Message, System.Environment.NewLine, ex.ToString())))                      using (log4net.NDC.Push(string.Format("{0}: MESSAGE={1}{2}Diagnostics:{2}{3}", ex.GetType().Name, ex.Message, System.Environment.NewLine, ex.ToString())))
206                      {                      {
207                          Logging.ATSAdminLog.Error(string.Format("Failed to setup database: {0}", ATSGlobals.strDatabaseName));                          Logging.ATSAdminLog.Error(string.Format("Failed to setup database: {0}", ATSGlobals.strDatabaseName));
# Line 209  namespace AnywhereTS Line 210  namespace AnywhereTS
210                  }                  }
211                  else                  else
212                  {                  {
213                        ErrorInfo = ErrorInfo.GetBaseException();
214                      using (log4net.NDC.Push(string.Format("{0}: MESSAGE={1}{2}Diagnostics:{2}{3}", ErrorInfo.GetType().Name, ErrorInfo.Message, System.Environment.NewLine, ErrorInfo.ToString())))                      using (log4net.NDC.Push(string.Format("{0}: MESSAGE={1}{2}Diagnostics:{2}{3}", ErrorInfo.GetType().Name, ErrorInfo.Message, System.Environment.NewLine, ErrorInfo.ToString())))
215                      {                      {
216                          Logging.ATSAdminLog.Error(string.Format("Failed to setup database: {0}", ATSGlobals.strDatabaseName));                          Logging.ATSAdminLog.Error(string.Format("Failed to setup database: {0}", ATSGlobals.strDatabaseName));

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

  ViewVC Help
Powered by ViewVC 1.1.22