Skip to content

Why is Exception.Message logged twice? #39

@w3lld0ne

Description

@w3lld0ne

Hi. Since Telegram imposes a 4096-character limit per message, it’s best to avoid duplicating information unnecessarily. Exception messages can be very long and, especially when combined with the stack trace, can easily exceed this limit.

sb.AppendLine($"\n<strong>{message}</strong>\n");
sb.AppendLine($"Message: <code>{message}</code>");

output.WriteLine($"\n<strong>{message}</strong>\n");
output.WriteLine($"Message: <code>{message}</code>");

Proposal: output the message only once. The <code>-formatted variant should be sufficient.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions