Skip to content

Commit

Permalink
Remove redundant shutdown log
Browse files Browse the repository at this point in the history
  • Loading branch information
bartelink committed Aug 22, 2023
1 parent a1ed78d commit b47c08d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Propulsion.CosmosStore/ChangeFeedProcessor.fs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ type ChangeFeedProcessor =
(changes : IReadOnlyCollection<System.Text.Json.JsonDocument>)
#endif
(checkpointAsync : CancellationToken -> Task<unit>) ct = task {
let log (e : exn) = log.Error(e, "Reader {processorName}/{partition} Handler Threw", processorName, context.LeaseToken)
let log: exn -> unit = function
| :? OperationCanceledException -> () // Shutdown via .Stop triggers this
| e -> log.Error(e, "Reader {processorName}/{partition} Handler Threw", processorName, context.LeaseToken)
try let ctx = { source = monitored; group = processorName
epoch = context.Headers.ContinuationToken.Trim[|'"'|] |> int64
#if COSMOSV3
Expand Down

0 comments on commit b47c08d

Please sign in to comment.