From f4f4f103431a0fa3adf82eec72002b9f73e909fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20B=C3=BCchel?= Date: Tue, 1 Jun 2021 12:36:38 +0200 Subject: [PATCH] SEBWIN-491: Changed default value for allowedDisplaysIgnoreFailure and fixed log message on error. --- SafeExamBrowser.Configuration/ConfigurationData/DataValues.cs | 2 +- SafeExamBrowser.Monitoring/Display/DisplayMonitor.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SafeExamBrowser.Configuration/ConfigurationData/DataValues.cs b/SafeExamBrowser.Configuration/ConfigurationData/DataValues.cs index a8ddf0cd..a1bf4dc4 100644 --- a/SafeExamBrowser.Configuration/ConfigurationData/DataValues.cs +++ b/SafeExamBrowser.Configuration/ConfigurationData/DataValues.cs @@ -188,7 +188,7 @@ namespace SafeExamBrowser.Configuration.ConfigurationData settings.ConfigurationMode = ConfigurationMode.Exam; settings.Display.AllowedDisplays = 1; - settings.Display.IgnoreError = false; + settings.Display.IgnoreError = true; settings.Display.InternalDisplayOnly = false; settings.Keyboard.AllowAltEsc = false; diff --git a/SafeExamBrowser.Monitoring/Display/DisplayMonitor.cs b/SafeExamBrowser.Monitoring/Display/DisplayMonitor.cs index f8b066d8..6fc08abd 100644 --- a/SafeExamBrowser.Monitoring/Display/DisplayMonitor.cs +++ b/SafeExamBrowser.Monitoring/Display/DisplayMonitor.cs @@ -75,7 +75,7 @@ namespace SafeExamBrowser.Monitoring.Display else { allowed = settings.IgnoreError; - logger.Info("Ignoring display setup validation error and allowing active setup."); + logger.Warn($"Failed to validate display configuration, {(allowed ? "ignoring error" : "active configuration is not allowed")}."); } return allowed;