forcedotcom / forcedotcom/git2gus
Shorten loggerMiddleware logs
- Dominant language
- JavaScript
- Stars
- 28
- Forks
- 14
- PR merge metrics
- No merged PRs in 30d
Description
The logger in [loggerMiddleware.js](https://github.com/forcedotcom/git2gus/blob/main/api/services/Logs/loggerMiddleware.js#L4-L9) 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.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.