Skip to content

Commit

Permalink
Update log level and comment for orphaned subscription removal
Browse files Browse the repository at this point in the history
  • Loading branch information
raymonddenhaan committed Nov 26, 2024
1 parent 7b8423e commit 4cf7972
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ await Task.WhenAll(
}
catch (ServiceBusException ex) when (ex.Reason == ServiceBusFailureReason.MessagingEntityNotFound)
{
logger.LogWarning("Unable to remove orphaned subscription: Service bus entity {entityPath} was not found, most likely due to it being removed automatically", ex.EntityPath);
// Queues are created with a TTL, which causes them to be deleted automatically.
// We still need to try to delete them in case the queue is still receiving messages, which prevents the auto-deletion.
logger.LogInformation("Unable to remove orphaned subscription: Service bus entity {entityPath} was not found, most likely due to it being removed automatically", ex.EntityPath);
}
}
}
Expand Down

0 comments on commit 4cf7972

Please sign in to comment.