Skip to content

Conversation

WilliamBZA
Copy link
Member

Accessing queue.FormatName may throw an exception if the name is too long. If the name is too long, it is likely the code will be in this section where it needs to log. If it attempts to log the message but the log operation raises an exception, then the log isn't written.

This change uses the original string address which will not throw an exception if queue.FormatName is too long.

@WilliamBZA WilliamBZA requested review from kentdr and saratry September 9, 2024 14:04
@WilliamBZA WilliamBZA merged commit 7287ee7 into master Sep 15, 2024
2 checks passed
@WilliamBZA WilliamBZA deleted the log-exceptions branch September 15, 2024 11:37
@WilliamBZA WilliamBZA changed the title Don't throw exception when logging Prevent exception being thrown when logging that a queue name is too long Sep 15, 2024
@WilliamBZA WilliamBZA added the Bug label Sep 15, 2024
@WilliamBZA WilliamBZA added this to the 3.0.1 milestone Sep 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants