write exceptions with stracktrace to log
authorStricted <info@stricted.de>
Mon, 25 Jan 2016 04:22:06 +0000 (05:22 +0100)
committerStricted <info@stricted.de>
Mon, 25 Jan 2016 04:22:06 +0000 (05:22 +0100)
SpeedportHybridControl/Data/SpeedportHybrid.cs
SpeedportHybridControl/Data/SpeedportHybridAPI.cs
SpeedportHybridControl/PageModel/LteInfoModel.cs

index e13da8e808c31844627a6a85ea63416697695a31..44da76f03e2bce0351faafbd022b83bdeaa9e661 100644 (file)
@@ -289,7 +289,7 @@ namespace SpeedportHybridControl.Data
             }
             catch (Exception ex)
             {
-                LogManager.WriteToLog(ex.Message);
+                LogManager.WriteToLog(ex.ToString());
             }
         }
 
@@ -346,7 +346,7 @@ namespace SpeedportHybridControl.Data
             }
             catch (Exception ex)
             {
-                LogManager.WriteToLog(ex.Message);
+                LogManager.WriteToLog(ex.ToString());
             }
         }
 
@@ -403,7 +403,7 @@ namespace SpeedportHybridControl.Data
             }
             catch (Exception ex)
             {
-                LogManager.WriteToLog(ex.Message);
+                LogManager.WriteToLog(ex.ToString());
             }
         }
 
@@ -438,7 +438,7 @@ namespace SpeedportHybridControl.Data
             }
             catch (Exception ex)
             {
-                LogManager.WriteToLog(ex.Message);
+                LogManager.WriteToLog(ex.ToString());
             }
         }
 
@@ -479,7 +479,7 @@ namespace SpeedportHybridControl.Data
             }
             catch (Exception ex)
             {
-                LogManager.WriteToLog(ex.Message);
+                LogManager.WriteToLog(ex.ToString());
             }
 
             response = null;
@@ -659,7 +659,7 @@ namespace SpeedportHybridControl.Data
             }
             catch (Exception ex)
             {
-                LogManager.WriteToLog(ex.Message);
+                LogManager.WriteToLog(ex.ToString());
             }
         }
 
@@ -758,7 +758,7 @@ namespace SpeedportHybridControl.Data
             }
             catch (Exception ex)
             {
-                LogManager.WriteToLog(ex.Message);
+                LogManager.WriteToLog(ex.ToString());
             }
         }
 
@@ -860,7 +860,7 @@ namespace SpeedportHybridControl.Data
             }
             catch (Exception ex)
             {
-                LogManager.WriteToLog(ex.Message);
+                LogManager.WriteToLog(ex.ToString());
             }
         }
 
@@ -929,7 +929,7 @@ namespace SpeedportHybridControl.Data
             }
             catch (Exception ex)
             {
-                LogManager.WriteToLog(ex.Message);
+                LogManager.WriteToLog(ex.ToString());
             }
         }
 
@@ -974,7 +974,7 @@ namespace SpeedportHybridControl.Data
             }
             catch (Exception ex)
             {
-                LogManager.WriteToLog(ex.Message);
+                LogManager.WriteToLog(ex.ToString());
             }
         }
     }
index 1bf0dad484bd59f131f64d43bd588ff9547f5aca..2dcfe37a549327c1adb036769abdd926988f3b6c 100644 (file)
@@ -52,7 +52,7 @@ namespace SpeedportHybridControl.Data
             }
             catch (Exception ex)
             {
-                LogManager.WriteToLog(ex.Message);
+                LogManager.WriteToLog(ex.ToString());
             }
 
             response = null;
@@ -116,7 +116,7 @@ namespace SpeedportHybridControl.Data
             }
             catch (Exception ex)
             {
-                LogManager.WriteToLog(ex.Message);
+                LogManager.WriteToLog(ex.ToString());
             }
 
             response = null;
@@ -160,7 +160,7 @@ namespace SpeedportHybridControl.Data
             }
             catch (Exception ex)
             {
-                LogManager.WriteToLog(ex.Message);
+                LogManager.WriteToLog(ex.ToString());
             }
 
             response = null;
@@ -196,7 +196,7 @@ namespace SpeedportHybridControl.Data
                         _derivedk = "";
 
                         LoginPageModel lpm = Application.Current.FindResource("LoginPageModel") as LoginPageModel;
-                        lpm.LoginCommand.Execute();
+                        lpm.LogoutAction();
                         MainWindowModel mwm = Application.Current.FindResource("MainWindowModel") as MainWindowModel;
                         mwm.SwitchToLoginPage.Execute();
 
@@ -242,7 +242,7 @@ namespace SpeedportHybridControl.Data
 
             catch (Exception ex)
             {
-                LogManager.WriteToLog(ex.Message);
+                LogManager.WriteToLog(ex.ToString());
             }
 
             response = null;
@@ -284,7 +284,7 @@ namespace SpeedportHybridControl.Data
             }
             catch (Exception ex)
             {
-                LogManager.WriteToLog(ex.Message);
+                LogManager.WriteToLog(ex.ToString());
             }
 
             response = null;
@@ -322,7 +322,7 @@ namespace SpeedportHybridControl.Data
             }
             catch (Exception ex)
             {
-                LogManager.WriteToLog(ex.Message);
+                LogManager.WriteToLog(ex.ToString());
             }
 
             response = null;
@@ -373,7 +373,7 @@ namespace SpeedportHybridControl.Data
             }
             catch (Exception ex)
             {
-                LogManager.WriteToLog(ex.Message);
+                LogManager.WriteToLog(ex.ToString());
             }
 
             response = null;
@@ -412,7 +412,7 @@ namespace SpeedportHybridControl.Data
                 }
                 catch (Exception ex)
                 {
-                    LogManager.WriteToLog(ex.Message);
+                    LogManager.WriteToLog(ex.ToString());
                 }
 
                 response = null;
@@ -457,7 +457,7 @@ namespace SpeedportHybridControl.Data
                 }
                 catch (Exception ex)
                 {
-                    LogManager.WriteToLog(ex.Message);
+                    LogManager.WriteToLog(ex.ToString());
                 }
 
                 response = null;
@@ -495,7 +495,7 @@ namespace SpeedportHybridControl.Data
             }
             catch (Exception ex)
             {
-                LogManager.WriteToLog(ex.Message);
+                LogManager.WriteToLog(ex.ToString());
             }
 
             response = null;
@@ -541,7 +541,7 @@ namespace SpeedportHybridControl.Data
             }
             catch (Exception ex)
             {
-                LogManager.WriteToLog(ex.Message);
+                LogManager.WriteToLog(ex.ToString());
             }
 
             response = null;
@@ -578,7 +578,7 @@ namespace SpeedportHybridControl.Data
             }
             catch (Exception ex)
             {
-                LogManager.WriteToLog(ex.Message);
+                LogManager.WriteToLog(ex.ToString());
             }
 
             response = null;
@@ -616,7 +616,7 @@ namespace SpeedportHybridControl.Data
             }
             catch (Exception ex)
             {
-                LogManager.WriteToLog(ex.Message);
+                LogManager.WriteToLog(ex.ToString());
             }
 
             response = null;
@@ -651,7 +651,7 @@ namespace SpeedportHybridControl.Data
             }
             catch (Exception ex)
             {
-                LogManager.WriteToLog(ex.Message);
+                LogManager.WriteToLog(ex.ToString());
             }
 
             response = null;
@@ -701,7 +701,7 @@ namespace SpeedportHybridControl.Data
             }
             catch (Exception ex)
             {
-                LogManager.WriteToLog(ex.Message);
+                LogManager.WriteToLog(ex.ToString());
             }
 
             response = null;
@@ -800,11 +800,11 @@ namespace SpeedportHybridControl.Data
             }
             catch (ArgumentOutOfRangeException ex)
             {
-                LogManager.WriteToLog(ex.Message);
+                LogManager.WriteToLog(ex.ToString());
             }
             catch (Exception ex)
             {
-                LogManager.WriteToLog(ex.Message);
+                LogManager.WriteToLog(ex.ToString());
             }
 
             return response;
@@ -860,7 +860,7 @@ namespace SpeedportHybridControl.Data
             }
             catch (Exception ex)
             {
-                LogManager.WriteToLog(ex.Message);
+                LogManager.WriteToLog(ex.ToString());
             }
 
             return response;
@@ -951,7 +951,7 @@ namespace SpeedportHybridControl.Data
             }
             catch (Exception ex)
             {
-                LogManager.WriteToLog(ex.Message);
+                LogManager.WriteToLog(ex.ToString());
             }
 
             return response;
index 9ec35515597df93d032e452e3a2e411ad4debafc..2f64760546d1f6fae0cc4ed925014fee410bbb14 100644 (file)
@@ -78,7 +78,15 @@ namespace SpeedportHybridControl.PageModel
         {
             if (AutoReload.Equals(true))
             {
-                StartTimer();
+                // allow autoreload only if popup is closed
+                if (Object.Equals(_ltepopup, null) || _ltepopup.IsLoaded.Equals(false))
+                {
+                    StartTimer();
+                }
+                else
+                {
+                    AutoReload = false;
+                }
             }
             else {
                 StopTimer();