mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user