[chore:] logging for AddressShortener.cs
This commit is contained in:
@@ -12,7 +12,8 @@ public class AddressShortener(ProgressWindow progressWindow)
|
||||
|
||||
public async Task Perform(KasAddressList list)
|
||||
{
|
||||
// find doubled addresses by refsid
|
||||
try
|
||||
{
|
||||
List<int> doubled_ids = new List<int>();
|
||||
for (int i = 0; i < list.KasPersons.Count; i++)
|
||||
{
|
||||
@@ -73,7 +74,11 @@ public class AddressShortener(ProgressWindow progressWindow)
|
||||
// does this remove both of the doubled addresses?
|
||||
list.KasPersons.Remove(list.KasPersons.Find(x => x.id == id));
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Logger.Log($"Error while performing address shortener: {ex.Message}", Logger.LogType.Error);
|
||||
}
|
||||
|
||||
//return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user