From 8c1a1af140437d0363aa04b7cc3694117bc20308 Mon Sep 17 00:00:00 2001 From: Jonathan Jenne Date: Fri, 16 Jun 2023 09:19:24 +0200 Subject: [PATCH] edmiapi: Improve error logging --- EDMIAPI/DatabaseWithFallback.vb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/EDMIAPI/DatabaseWithFallback.vb b/EDMIAPI/DatabaseWithFallback.vb index eb7cc3cc..0dbff6bb 100644 --- a/EDMIAPI/DatabaseWithFallback.vb +++ b/EDMIAPI/DatabaseWithFallback.vb @@ -203,15 +203,18 @@ Public Class DatabaseWithFallback ' If the table is not cached, we try going through the service If Not IsTableCached(pDataTableName) Then + _Logger.Debug("Datatable is not chached, fetching data from service.") Return GetDatatableFromService(pFallbackSQL, pFallbackType, pConnectionId) End If ' If there is a proper ConnectionId, we try going through the service If pConnectionId > 0 Then + _Logger.Debug("ConnectionId is set, fetching data from service.") Return GetDatatableFromService(pFallbackSQL, pFallbackType, pConnectionId) End If Try + _Logger.Debug("Datatable is chached, fetching data from cache.") oTableResult = _Client.GetDatatableByName(pDataTableName, pFilterExpression, pSortByColumn) Catch ex As Exception _Logger.Error(ex)