Skip to content

Shorten loggerMiddleware logs #160

@mpsenn

Description

@mpsenn

The logger in loggerMiddleware.js logs very long log lines, since it logs the entire POST body of a github webhook, which can be upwards of 30,000 characters. This leads to the log being split over multiple lines and unable to being parsed as json.

It'd be great to filter the POST body before logging, and only including important stuff, like the x-github- headers, info about the repository and event. There are a ton of URLs that could be filtered out. The PR title is great to log, but not the whole PR description.

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