Procházet zdrojové kódy

Nlog will report the missing parameter of config files as errors

gsp před 2 roky
rodič
revize
b17dd551b3

+ 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!");
+
+                }
             }