From 81b7f47d3d6784c5f0ca97ebd8140362263ef927 Mon Sep 17 00:00:00 2001 From: Jonathan Jenne Date: Wed, 13 Jan 2021 16:59:40 +0100 Subject: [PATCH] improve logging --- app/DD_Clipboard_Searcher/ClassDataASorDB.vb | 2 +- app/DD_Clipboard_Searcher/frmMain.vb | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/DD_Clipboard_Searcher/ClassDataASorDB.vb b/app/DD_Clipboard_Searcher/ClassDataASorDB.vb index 21b1bec..056697c 100644 --- a/app/DD_Clipboard_Searcher/ClassDataASorDB.vb +++ b/app/DD_Clipboard_Searcher/ClassDataASorDB.vb @@ -85,7 +85,7 @@ Public Class ClassDataASorDB HotkeySearchKey = oResult HotkeySearchKey_via_Server = True Catch ex As Exception - HotkeySearchKey = "d" + HotkeySearchKey_via_Server = "d" End Try Else diff --git a/app/DD_Clipboard_Searcher/frmMain.vb b/app/DD_Clipboard_Searcher/frmMain.vb index 99f2bac..7300881 100644 --- a/app/DD_Clipboard_Searcher/frmMain.vb +++ b/app/DD_Clipboard_Searcher/frmMain.vb @@ -224,20 +224,26 @@ Public Class frmMain If MONITORING_ACTIVE = True Then If CURRENT_MATCHING_PROFILES.Count = 0 Then Logger.Info("ReceiveHotKey - No profiles matched the Clipboard-Content!") + Logger.Info("NOMATCH_INFO = {0}", NOMATCH_INFO) If NOMATCH_INFO = False Then NotifyIconMain.BalloonTipTitle = "Clipboard Watcher" NotifyIconMain.BalloonTipText = "Es wurden keine passenden Profile gefunden." NotifyIconMain.BalloonTipIcon = ToolTipIcon.Warning - NotifyIconMain.ShowBalloonTip(2500) + NotifyIconMain.ShowBalloonTip(2500)+ + Else + Logger.Info("Popup will not be shown. NOMATCH_INFO Is True.") End If ElseIf CURRENT_PROFILES_WITH_RESULTS.Count = 0 Then Logger.Info("ReceiveHotKey - No documents or data found for Clipboard-Content!") + Logger.Info("NOMATCH_INFO = {0}", NOMATCH_INFO) If NOMATCH_INFO = False Then NotifyIconMain.BalloonTipTitle = "Clipboard Watcher" NotifyIconMain.BalloonTipText = "Es wurden weder Dokumente noch Daten gefunden!" NotifyIconMain.BalloonTipIcon = ToolTipIcon.Warning NotifyIconMain.ShowBalloonTip(2500) + Else + Logger.Info("Popup will not be shown. NOMATCH_INFO Is True.") End If Else