Added log entry on catalog item migration warnings

Added a call to LogErrorToFile so that warnings are also captured in the output log file.
This commit is contained in:
Alex Talarico
2024-07-05 13:36:25 -04:00
committed by GitHub
parent 6d1372e920
commit d8a9c3d722
@@ -579,6 +579,7 @@ Function MigrateCatalogItem(srcItem As CatalogItem) As CatalogItem
For Each w As Warning In warnings
If w.Code <> "rsDataSourceReferenceNotPublished" And w.Code <> "rsDataSetReferenceNotPublished" Then 'This should be fine after re-linking
Console.WriteLine("Warning: " + w.Message)
LogErrorToFile("CATALOGITEM", "Warning: " + srcItem.Path, w.Message)
End If
Next
Console.ResetColor()