File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -368,13 +368,14 @@ await processMessageEventArgs.SafeAbandonMessageAsync(message,
368
368
}
369
369
catch ( ServiceBusException onErrorEx ) when ( onErrorEx . IsTransient || onErrorEx . Reason is ServiceBusFailureReason . MessageLockLost )
370
370
{
371
+ Logger . Debug ( "Failed to execute recoverability." , onErrorEx ) ;
372
+
371
373
if ( IsReceiveOnlyMessageLockLost ( ex , message ) )
372
374
{
373
375
Logger . Warn ( $ "Message with id `{ message . GetMessageId ( ) } ` has been returned to the queue and marked for deletion.- { onErrorEx . Message } ") ;
374
376
//Since the message lock was lost, we can't complete or abandon the message without throwing an error
375
377
return ;
376
378
}
377
- Logger . Debug ( "Failed to execute recoverability." , onErrorEx ) ;
378
379
379
380
await processMessageEventArgs . SafeAbandonMessageAsync ( message ,
380
381
transportSettings . TransportTransactionMode ,
You can’t perform that action at this time.
0 commit comments