[chronojump] Print the config on log



commit dd99500a9811edd3fc819e3386d0646e6f030072
Author: Xavier de Blas <xaviblas gmail com>
Date:   Mon Jun 13 19:11:47 2022 +0200

    Print the config on log

 src/config.cs       | 26 +++++++++++---------------
 src/gui/networks.cs |  3 ++-
 2 files changed, 13 insertions(+), 16 deletions(-)
---
diff --git a/src/config.cs b/src/config.cs
index 6df36223b..2eb607e86 100644
--- a/src/config.cs
+++ b/src/config.cs
@@ -229,22 +229,18 @@ public class Config
 
        public override string ToString() 
        {
-               return(
-                               "Maximized = " + Maximized.ToString() + "\n" +
-                               "CustomButtons = " + CustomButtons.ToString() + "\n" +
-                               "UseVideo = " + UseVideo.ToString() + "\n" +
-                               "OnlyEncoderGravitatory = " + OnlyEncoderGravitatory.ToString() + "\n" +
-                               "OnlyEncoderInertial = " + OnlyEncoderInertial.ToString() + "\n" +
-                               "EncoderCaptureShowOnlyBars = " + EncoderCaptureShowOnlyBars.ToString() + 
"\n" +
-                               "EncoderUpdateTreeViewWhileCapturing = " + 
EncoderUpdateTreeViewWhileCapturing.ToString() + "\n" +
-                               "PersonWinHide = " + PersonWinHide.ToString() + "\n" +
-                               "EncoderAnalyzeHide = " + EncoderAnalyzeHide.ToString() + "\n" +
-                               "SessionMode = " + SessionMode.ToString() + "\n" +
-                               "Compujump = " + Compujump.ToString() + "\n" +
-                               "RunScriptOnExit = " + RunScriptOnExit.ToString() + "\n"
-                     );
+               return (string.Format (
+                                       "Compujump = {0}, CompujumpDjango = {1}, CompujumpHideTaskDone = {2}, 
CompujumpServerURL = {3}, " +
+                                       "CompujumpStationID = {4}, CompujumpAdminID = {5}, 
compujumpAdminEmail = {6}, CompujumpStationMode = {7}, " +
+                                       "SessionMode = {8}, PlaySoundsFromFile = {9}, Exhibition = {10}, 
Raspberry = {11}, " +
+                                       "LowHeight = {12}, LowCPU = {13}, GuiTest = {14}, CanOpenExternalDB = 
{15}, " +
+                                       "ExternalDBDefaultPath = {16}, LastDBFullPath = {17}",
+                                       Compujump, CompujumpDjango, CompujumpHideTaskDone, CompujumpServerURL,
+                                       CompujumpStationID, CompujumpAdminID, CompujumpAdminEmail, 
CompujumpStationMode,
+                                       SessionMode, PlaySoundsFromFile, Exhibition, Raspberry,
+                                       LowHeight, LowCPU, GuiTest, CanOpenExternalDB,
+                                       ExternalDBDefaultPath, LastDBFullPath));
        }
-       */
 
        ~Config() {}
 }
diff --git a/src/gui/networks.cs b/src/gui/networks.cs
index b12fc5fd8..7a6656c34 100644
--- a/src/gui/networks.cs
+++ b/src/gui/networks.cs
@@ -128,7 +128,8 @@ public partial class ChronoJumpWindow
 
        private void configInitRead()
        {
-               configChronojump.Read();
+               configChronojump.Read ();
+               LogB.Information("readed config: " + configChronojump.ToString ());
 
                if(configChronojump.CompujumpStationMode != Constants.Modes.UNDEFINED)
                {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]