Explorar el Código

Nlog will report the missing parameter of config files as errors

gsp hace 2 años
padre
commit
b17dd551b3
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      OTSIncAMeasureApp/0-OTSModel/OTSDataType/XMLSerialization.cs

+ 5 - 0
OTSIncAMeasureApp/0-OTSModel/OTSDataType/XMLSerialization.cs

@@ -501,6 +501,11 @@ namespace OTSDataType
                     //string aa = rootNode.Attributes[element.Key].Value;
                     element.Value.getStringPtr(rootNode.Attributes[element.Key].Value);
                 }
+                else
+                {
+                    NLog.LogManager.GetCurrentClassLogger().Error("cann't find " + element.Key + " in config file!");
+
+                }
             }