1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-01-31 09:09:00 +03:00
Octobot/TeamOctolings.Octobot/Extensions
Octol1ttle e457b4609e
Don't log stack traces for cancelled operations (#327)
This PR fixes an issue where the `LogResultStackTrace` method would log
stack traces for results that encountered an error due to a cancelled
operation/task. The `LoggerExtensions` class already skipped
`TaskCanceledException`s, but didn't skip `OperationCanceledException`s
(which is a parent of `TaskCanceledException`).

The patch specifically does not affect *inner* results which are
canceled. Skipping logging these could hide the true cause of an error
which appears important
2024-07-31 23:57:21 +05:00
..
ChannelApiExtensions.cs Upgrade NuGet dependencies (#313) 2024-05-30 15:32:27 +05:00
CollectionExtensions.cs Apply official naming guidelines to Octobot (#306) 2024-05-16 20:34:26 +05:00
CommandContextExtensions.cs Apply official naming guidelines to Octobot (#306) 2024-05-16 20:34:26 +05:00
DiffPaneModelExtensions.cs Apply official naming guidelines to Octobot (#306) 2024-05-16 20:34:26 +05:00
EmbedBuilderExtensions.cs Apply official naming guidelines to Octobot (#306) 2024-05-16 20:34:26 +05:00
FeedbackServiceExtensions.cs Apply official naming guidelines to Octobot (#306) 2024-05-16 20:34:26 +05:00
GuildScheduledEventExtensions.cs Apply official naming guidelines to Octobot (#306) 2024-05-16 20:34:26 +05:00
LoggerExtensions.cs Don't log stack traces for cancelled operations (#327) 2024-07-31 23:57:21 +05:00
MarkdownExtensions.cs Redesign reminder-related commands (#321) 2024-07-03 17:12:32 +00:00
ResultExtensions.cs Don't log stack traces for cancelled operations (#327) 2024-07-31 23:57:21 +05:00
SnowflakeExtensions.cs Apply official naming guidelines to Octobot (#306) 2024-05-16 20:34:26 +05:00
StringBuilderExtensions.cs Apply official naming guidelines to Octobot (#306) 2024-05-16 20:34:26 +05:00
StringExtensions.cs Apply official naming guidelines to Octobot (#306) 2024-05-16 20:34:26 +05:00
UInt64Extensions.cs Apply official naming guidelines to Octobot (#306) 2024-05-16 20:34:26 +05:00
UserExtensions.cs Apply official naming guidelines to Octobot (#306) 2024-05-16 20:34:26 +05:00