From 7955e9d13eff7511ca44e02f7cbd39c934f83c8f Mon Sep 17 00:00:00 2001 From: Jonathan Jenne Date: Fri, 8 Oct 2021 15:44:49 +0200 Subject: [PATCH] GUIs.ClipboardWatcher: Add error logging --- GUIs.ClipboardWatcher/ProfileSearches.vb | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/GUIs.ClipboardWatcher/ProfileSearches.vb b/GUIs.ClipboardWatcher/ProfileSearches.vb index e25200c5..f7effafd 100644 --- a/GUIs.ClipboardWatcher/ProfileSearches.vb +++ b/GUIs.ClipboardWatcher/ProfileSearches.vb @@ -43,10 +43,11 @@ Public Class ProfileSearches End If Catch ex As Exception _Logger.Warn($"Could not initialize the AppServer: {ex.Message}") + _Logger.Error(ex) End Try End If Catch ex As Exception - + _Logger.Error(ex) End Try End Sub @@ -94,13 +95,13 @@ Public Class ProfileSearches End If oDocSearches.Add(New Search() With { - .Guid = oGuid, - .DataTable = oDatatable, - .ProfileId = oProfileId, - .TabCaption = oTabTitle, - .TabIndex = oCounter, - .SQLCommand = oSQL - }) + .Guid = oGuid, + .DataTable = oDatatable, + .ProfileId = oProfileId, + .TabCaption = oTabTitle, + .TabIndex = oCounter, + .SQLCommand = oSQL + }) oCounter += 1 Next