Skip to content

Trim the last \n for c.Errors.String #52

@slhmy

Description

@slhmy

The logger is not pretty enough when printing gin Errors.

There is always one additional line break in the message, such as:

May 12 05:28:17.693 WRN Error #01: handler: unauthorized
 request.time="2025-05-12 05:28:17.687418 +0000 UTC" ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions