Selaa lähdekoodia

Nlog will report the missing parameter of config files as errors

gsp 2 vuotta sitten
vanhempi
commit
b17dd551b3
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  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!");
+
+                }
             }