edmiapi: Improve error logging
This commit is contained in:
parent
36b38f0bd8
commit
8c1a1af140
@ -203,15 +203,18 @@ Public Class DatabaseWithFallback
|
|||||||
|
|
||||||
' If the table is not cached, we try going through the service
|
' If the table is not cached, we try going through the service
|
||||||
If Not IsTableCached(pDataTableName) Then
|
If Not IsTableCached(pDataTableName) Then
|
||||||
|
_Logger.Debug("Datatable is not chached, fetching data from service.")
|
||||||
Return GetDatatableFromService(pFallbackSQL, pFallbackType, pConnectionId)
|
Return GetDatatableFromService(pFallbackSQL, pFallbackType, pConnectionId)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
' If there is a proper ConnectionId, we try going through the service
|
' If there is a proper ConnectionId, we try going through the service
|
||||||
If pConnectionId > 0 Then
|
If pConnectionId > 0 Then
|
||||||
|
_Logger.Debug("ConnectionId is set, fetching data from service.")
|
||||||
Return GetDatatableFromService(pFallbackSQL, pFallbackType, pConnectionId)
|
Return GetDatatableFromService(pFallbackSQL, pFallbackType, pConnectionId)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Try
|
Try
|
||||||
|
_Logger.Debug("Datatable is chached, fetching data from cache.")
|
||||||
oTableResult = _Client.GetDatatableByName(pDataTableName, pFilterExpression, pSortByColumn)
|
oTableResult = _Client.GetDatatableByName(pDataTableName, pFilterExpression, pSortByColumn)
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
_Logger.Error(ex)
|
_Logger.Error(ex)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user