C2022-014 commented out debug write to error log

This commit is contained in:
John Jenko 2022-04-07 21:16:27 +00:00
parent 9d94851e94
commit 3de3252f1b

View File

@ -337,8 +337,9 @@ namespace VEPROMS.CSLA.Library
if (roval == null) return null;
//string childName = MyDocVersionInfo.DocVersionConfig.Unit_Name;
MatchCollection mm = Regex.Matches(roval, "(<APL [^<]+) /APL>"); // B2022-020 remove a un-needed question mark that was in the search criteria
if (mm.Count == 0) // B2022-020 will now write in error log if there is a problem
_MyLog.WarnFormat("Parent/Child Values not parsable for <APL ... /APL>\r\nItemId={0}\r\nROValue={1} ",MyDocVersionInfo.ItemID,roval);
// C2022-014 commented write to error log. Keep for debugging purposes.
//if (mm.Count == 0) // B2022-020 will now write in error log if there is a problem
// _MyLog.WarnFormat("Parent/Child Values not parsable for <APL ... /APL>\r\nItemId={0}\r\nROValue={1} ",MyDocVersionInfo.ItemID,roval);
StringBuilder sb = new StringBuilder();
int lastIndex = 0;
// Get selected child Idx