Skip to content

Commit

Permalink
Enable result stacktraces in release mode (#305)
Browse files Browse the repository at this point in the history
Originally I did not enable because "stack traces are expensive to
retrieve", but let's be honest, who cares, this is a Discord bot,
there's no such thing as "good performance"
  • Loading branch information
Octol1ttle authored May 13, 2024
1 parent 2502beb commit 19fadea
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Extensions/ResultExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ public static Result FromError<T>(Result<T> result)
return casted;
}

[Conditional("DEBUG")]
private static void LogResultStackTrace(Result result)
{
if (Octobot.StaticLogger is null || result.IsSuccess)
Expand Down

0 comments on commit 19fadea

Please sign in to comment.