Skip to content

Commit 35a52b6

Browse files
authored
Don't log health checks (#1121)
1 parent a505bcf commit 35a52b6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/services/service-common/src/request-logs.ts

+5
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ const plugin: FastifyPluginAsync = async server => {
2828
}
2929

3030
server.addHook('onResponse', async (request, reply) => {
31+
if (request.url === '/_readiness' || request.url === '/_health') {
32+
// Don't log health checks
33+
return;
34+
}
35+
3136
const requestId = cleanRequestId(request.headers['x-request-id']);
3237
const operationName = graphqlOperationName(request);
3338
const message = [

0 commit comments

Comments
 (0)