Skip to content

The logger not output messages when logging fatal #2958

Closed
@free1139

Description

@free1139

I have been trying to install gitea (master and v1.3) today, but when i finish install it from browser, the go program was exited without any error messages, when i run "./gitea web" again, it can not be restarted.

I have debugged it, and i found "code.gitea.io/gitea/modules/log".Fatal was using go channel to output messages, maybe os.Exit was called before outputting messages .

My server system information:
Linux iZ23mbdnjl9Z 3.2.0-4-amd64 #1 SMP Debian 3.2.78-1 x86_64 GNU/Linux
CPU: 1 core

Maybe need to fix this code:
image

Official output:
image

Expect output:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedtype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions