Add log if filter field doesn't match anything

This commit is contained in:
Matt Nadareski
2020-12-16 10:49:38 -08:00
parent c3753b13c1
commit e59c9fa0e4
6 changed files with 86 additions and 66 deletions

View File

@@ -112,25 +112,6 @@ namespace SabreTools.Filtering
#region Filter Population
/// <summary>
/// Populate the filters object using a set of key:value filters
/// </summary>
/// <param name="filters">List of key:value where ~key/!key is negated</param>
public override void PopulateFromList(List<string> filters)
{
foreach (string filterPair in filters)
{
(string field, string value, bool negate) = ProcessFilterPair(filterPair);
// If we don't even have a possible filter pair
if (field == null && value == null)
continue;
MachineField filterField = field.AsMachineField();
SetFilter(filterField, value, negate);
}
}
/// <summary>
/// Set multiple filters from key
/// </summary>