From e56be8a6fe38419841d44b1195bb05df19419c17 Mon Sep 17 00:00:00 2001 From: Developer01 Date: Thu, 10 Sep 2026 14:40:55 +0200 Subject: [PATCH] Verbessere Logging und aktualisiere Assembly-Versionen Die Logik in `ConfigManager(Of T)` wurde angepasst, um bei Fehlern beim Laden der App-Konfiguration detailliertere Informationen (Pfad und Fehlergrund) zu protokollieren. In `AssemblyInfo.vb` wurden die Trademark-Version, Assembly-Version und File-Version von `1.4.0.0` auf `1.5.0.0` aktualisiert. --- Config/ConfigManager.vb | 4 +--- Config/My Project/AssemblyInfo.vb | 6 +++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Config/ConfigManager.vb b/Config/ConfigManager.vb index ef68c64a..8fa9dd31 100644 --- a/Config/ConfigManager.vb +++ b/Config/ConfigManager.vb @@ -235,13 +235,11 @@ Public Class ConfigManager(Of T) Try Dim oAppConfig = ReadFromFile(_AppConfigPath) CopyValues(oAppConfig, Config) - _Logger.Info("AppConfig exists and will be used. [{0}]", _AppConfigPath) Catch ex As Exception _Logger.Error(ex) - _Logger.Warn("ApplicationConfig could not be loaded!") + _Logger.Warn("ApplicationConfig could not be loaded! Path: [{0}] Reason: {1}", _AppConfigPath, ex.Message) End Try - _WriteAllValuesToUserConfig = False Else _Logger.Debug("ApplicationConfig does not exist.") diff --git a/Config/My Project/AssemblyInfo.vb b/Config/My Project/AssemblyInfo.vb index 33c5a40e..b703b92c 100644 --- a/Config/My Project/AssemblyInfo.vb +++ b/Config/My Project/AssemblyInfo.vb @@ -13,7 +13,7 @@ Imports System.Runtime.InteropServices - + @@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices ' übernehmen, indem Sie "*" eingeben: ' - - + +