Skip to content

Commit

Permalink
Log unexpected exceptions on sync failure (#569)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenseanxy authored Feb 16, 2025
1 parent 18a91f9 commit bca6203
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Wino.Core/Synchronizers/ImapSynchronizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -653,9 +653,9 @@ private async Task<IEnumerable<string>> SynchronizeFolderInternalAsync(MailItemF
{
// Ignore cancellations.
}
catch (Exception)
catch (Exception ex)
{

_logger.Error(ex, "Synchronization failed for folder {FolderName}", folder.FolderName);
}
finally
{
Expand Down

0 comments on commit bca6203

Please sign in to comment.