Add Test Mode
This commit is contained in:
@@ -24,7 +24,7 @@ Public Class ClassInit
|
||||
CONFIG = New ConfigManager(Of ClassConfig)(LOGCONFIG, Application.UserAppDataPath, Application.CommonAppDataPath)
|
||||
LOGGER.Info("Config loaded")
|
||||
|
||||
If CONFIG.Config.ConnectionStringTest <> String.Empty Then
|
||||
If CONFIG.Config.ConnectionStringTest <> String.Empty And CONFIG.Config.TestMode = True Then
|
||||
LOGGER.Debug("Test Connection String loaded")
|
||||
CONNECTION_STRING = DecryptConnectionString(CONFIG.Config.ConnectionStringTest)
|
||||
Else
|
||||
@@ -46,6 +46,7 @@ Public Class ClassInit
|
||||
|
||||
LOG_ERRORS_ONLY = CONFIG.Config.LogErrorsOnly
|
||||
LOGCONFIG.Debug = Not LOG_ERRORS_ONLY
|
||||
TEST_MODE = CONFIG.Config.TestMode
|
||||
|
||||
'Settings_Load()
|
||||
End Sub
|
||||
|
||||
Reference in New Issue
Block a user