Config: Improve logging

This commit is contained in:
Jonathan Jenne 2021-11-30 16:10:06 +01:00
parent 61a15d472b
commit a118da79cf

View File

@ -277,7 +277,7 @@ Public Class ConfigManager(Of T)
If File.Exists(_UserConfigPath) Then If File.Exists(_UserConfigPath) Then
Try Try
Dim oUserConfig = ReadFromFile(_UserConfigPath) Dim oUserConfig = ReadFromFile(_UserConfigPath)
_Logger.Info("UserConfig exists and will be used. [{0}]", _UserConfigPath) _Logger.Debug("UserConfig exists and will be used. [{0}]", _UserConfigPath)
' if user config exists ' if user config exists
If Not IsNothing(oUserConfig) Then If Not IsNothing(oUserConfig) Then
@ -288,8 +288,6 @@ Public Class ConfigManager(Of T)
CopyValues(oUserConfig, Config, _ExcludedAttributes) CopyValues(oUserConfig, Config, _ExcludedAttributes)
End If End If
End If End If
_Logger.Info("UserConfig exists and will be used. [{0}]", _UserConfigPath)
Catch ex As Exception Catch ex As Exception
_Logger.Error(ex) _Logger.Error(ex)
_Logger.Warn("User config could not be loaded!") _Logger.Warn("User config could not be loaded!")