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

Diff of /trunk/TSAdminTool/ImageRuntimeConfig.cs

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

--- trunk/TSAdminTool/ImageRuntimeConfig.cs	2012/07/11 14:19:13	4
+++ trunk/TSAdminTool/ImageRuntimeConfig.cs	2012/07/12 14:17:14	46
@@ -685,6 +685,13 @@
             catch (Exception e)
             {
                 MessageBox.Show("Error cannot delete old config file (24573). Path: '" + pathfile + "'. Error: " + e.Message);
+                using (log4net.NDC.Push(string.Format("SqlException: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString())))
+                {
+                    using (log4net.NDC.Push(string.Format("file={0}", pathfile)))
+                    {
+                        Logging.ATSAdminLog.Error("Cannot delete old config file");
+                    }
+                }
                 return result;
             }
             
@@ -704,6 +711,13 @@
             {
                 // (Could be improved with auto-retry)
                 MessageBox.Show("Error: Could not write configuration data to disk. Possibly the data is being accessed by another component right now or you do not have the sufficient rights. Please retry this operation a little later. Error details: "+ e.Message);
+                using (log4net.NDC.Push(string.Format("SqlException: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString())))
+                {
+                    using (log4net.NDC.Push(string.Format("file={0}", pathfile)))
+                    {
+                        Logging.ATSAdminLog.Error("Could not write configuration data to disk");
+                    }
+                }
             }
             finally
             {

 

  ViewVC Help
Powered by ViewVC 1.1.22