From: Stricted Date: Mon, 25 Jan 2016 04:22:06 +0000 (+0100) Subject: write exceptions with stracktrace to log X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=89ff0d9c773df4a911d0660d17c05c5b1bf1f84d;p=GitHub%2FStricted%2FSpeedportHybridControl.git write exceptions with stracktrace to log --- diff --git a/SpeedportHybridControl/Data/SpeedportHybrid.cs b/SpeedportHybridControl/Data/SpeedportHybrid.cs index e13da8e..44da76f 100644 --- a/SpeedportHybridControl/Data/SpeedportHybrid.cs +++ b/SpeedportHybridControl/Data/SpeedportHybrid.cs @@ -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()); } } } diff --git a/SpeedportHybridControl/Data/SpeedportHybridAPI.cs b/SpeedportHybridControl/Data/SpeedportHybridAPI.cs index 1bf0dad..2dcfe37 100644 --- a/SpeedportHybridControl/Data/SpeedportHybridAPI.cs +++ b/SpeedportHybridControl/Data/SpeedportHybridAPI.cs @@ -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; diff --git a/SpeedportHybridControl/PageModel/LteInfoModel.cs b/SpeedportHybridControl/PageModel/LteInfoModel.cs index 9ec3551..2f64760 100644 --- a/SpeedportHybridControl/PageModel/LteInfoModel.cs +++ b/SpeedportHybridControl/PageModel/LteInfoModel.cs @@ -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();