Added a catch block for OperationCanceledException to ensure it is ignored and not logged, similar to the existing handling of TaskCanceledException. This change prevents logging of expected cancellation exceptions, reducing noise in the logs.
Purpose
This pull request is a:
[x] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
Checklist
[x] I have added tests that prove my fix is effective or that my feature works
[x] I have added necessary documentation (if appropriate)
Description
Added a catch block for OperationCanceledException to ensure it is ignored and not logged, similar to the existing handling of TaskCanceledException. This change prevents logging of expected cancellation exceptions, reducing noise in the logs.
Purpose
This pull request is a:
Checklist