TruBudget
TruBudget copied to clipboard
1816 Logging-service improvements
Silence specific routes.Optional shortening of log ou…tput.
Checklist
- [ ] I have followed (at least) the PR section of the contributing guide.
- [ ] I fixed all necessary PR warnings
- [ ] The commit history is clean
- [ ] The E2E tests are passing
- [ ] If possible, the issue has been divided into more subtasks
- [ ] I did a self review before requesting a review from another team member
Description
How to test
- Change "trubudget-logging-service": "file:../logging-service" in package.json of a service and build environment
- Update variable SILENCE_LOGGING_ON_FREQUENT_ROUTES=true
- Test if endpoints like /readiness are not logging
- Update variable SHORT_ROUTES_LOGGING_OUTPUT=true
- Test if logs are short. Not implemented in api service
Closes #1816