EDMIService: Fix error logging

This commit is contained in:
Jonathan Jenne 2022-01-18 13:26:12 +01:00
parent 66bec3714a
commit 511b16560a
4 changed files with 4 additions and 1 deletions

View File

@ -43,6 +43,7 @@ Namespace Methods.Database.ExecuteNonQuery
Return New ExecuteNonQueryResponse(oResult)
Catch ex As Exception
Logger.Warn("Error occurred while getting database scalar value!")
Logger.Error(ex)
Return New ExecuteNonQueryResponse(ex)
End Try
End Function

View File

@ -47,6 +47,7 @@ Namespace Methods.Database.GetDatatable
Return New GetDatatableResponse(oDatatable)
Catch ex As Exception
Logger.Warn("Error occurred while getting database table!")
Logger.Error(ex)
Return New GetDatatableResponse(ex)
End Try
End Function

View File

@ -47,6 +47,7 @@ Namespace Methods.Database.GetScalarValue
Return New GetScalarValueResponse(oDatatable)
Catch ex As Exception
Logger.Warn("Error occurred while getting database scalar value!")
Logger.Error(ex)
Return New GetScalarValueResponse(ex)
End Try
End Function

View File

@ -61,7 +61,7 @@ Namespace Methods.GlobalIndexer.ImportFile
' Import the file
Dim oNewFile As New NewFile.NewFileMethod(LogConfig, DatabaseIDB, DatabaseECM, GlobalState)
Dim oResponse = oNewFile.Run(New NewFile.VersionFileRequest With {
Dim oResponse = oNewFile.Run(New NewFile.NewFileRequest With {
.File = pData.File,
.BusinessEntity = pData.BusinessEntity,
.KindType = pData.KindType,