ClipboardWatcher: Improve Logging, Fix Catchall
This commit is contained in:
@@ -132,24 +132,33 @@ Public Class frmMatch
|
||||
|
||||
Dim oProfileMatch As Boolean = False
|
||||
|
||||
_Logger.NewBlock($"Profile {oProfile.Name}")
|
||||
|
||||
If oProfile.ProfileType = ProfileType.ANY Or oProfile.ProfileType = ProfileType.DOCS_ONLY Then
|
||||
_Logger.Debug("Docs only or ProfileTypeAny")
|
||||
_Logger.Debug("ProfileType: DOCS_ONLY or ANY")
|
||||
|
||||
If oProfile.CountDocs > 0 Then
|
||||
Dim oItem = CreateTile(oProfile, $"{oProfile.CountDocs} Dateien")
|
||||
oDocumentGroup.Items.Add(oItem)
|
||||
oCreatedTiles += 1
|
||||
oProfileMatch = True
|
||||
|
||||
_Logger.Debug("{0} Doc-Results!", oProfile.CountDocs)
|
||||
Else
|
||||
_Logger.Debug("NO Doc-Results!")
|
||||
End If
|
||||
End If
|
||||
|
||||
If oProfile.ProfileType = ProfileType.ANY Or oProfile.ProfileType = ProfileType.DATA_ONLY Then
|
||||
_Logger.Debug("ProfileType: DATA_ONLY or ANY")
|
||||
|
||||
If oProfile.CountData > 0 Then
|
||||
Dim oItem = CreateTile(oProfile, $"{oProfile.CountData} Datensätze")
|
||||
oDataGroup.Items.Add(oItem)
|
||||
oCreatedTiles += 1
|
||||
oProfileMatch = True
|
||||
|
||||
_Logger.Debug("{0} Data-Results!", oProfile.CountData)
|
||||
Else
|
||||
_Logger.Debug("NO Data-Results!")
|
||||
End If
|
||||
|
||||
Reference in New Issue
Block a user