EDMIService: Add Profile Logging

This commit is contained in:
Jonathan Jenne 2021-12-23 12:46:41 +01:00
parent 67fe2ee7da
commit d27eafd9aa

View File

@ -26,8 +26,7 @@ Namespace Methods.GlobalIndexer
Logger.Debug("Start of Method [LoadProfile]") Logger.Debug("Start of Method [LoadProfile]")
Try Try
Dim oProfile = GetDatatable.Run( Dim oProfile = GetDatatable.Run(New GetDatatableFromCacheRequest With {
New GetDatatableFromCacheRequest With {
.DataTable = VIEW_PROFILE, .DataTable = VIEW_PROFILE,
.FilterExpression = $"DOCTYPE_ID = {pProfileId}" .FilterExpression = $"DOCTYPE_ID = {pProfileId}"
}) })
@ -47,6 +46,13 @@ Namespace Methods.GlobalIndexer
.DynamicPath = oRow.ItemEx("DYNAMIC_FOLDER", "") .DynamicPath = oRow.ItemEx("DYNAMIC_FOLDER", "")
} }
Logger.Debug("Name: [{0}]", oProfileObject.Name)
Logger.Debug("Active: [{0}]", oProfileObject.IsActive)
Logger.Debug("ObjectStore: [{0}]", oProfileObject.ObjectStore)
Logger.Debug("ShortName: [{0}]", oProfileObject.ShortName)
Logger.Debug("NameConvention: [{0}]", oProfileObject.NameConvention)
Logger.Debug("DynamicPath: [{0}]", oProfileObject.DynamicPath)
Return oProfileObject Return oProfileObject
Catch ex As Exception Catch ex As Exception
LogAndThrow(ex, "Error while automatic loading profile!") LogAndThrow(ex, "Error while automatic loading profile!")