Skip to content

Commit fc5840b

Browse files
authored
Exclude healthcheck calls from logging interceptor (#131)
Signed-off-by: Khor Shu Heng <khor.heng@gojek.com> Co-authored-by: Khor Shu Heng <khor.heng@gojek.com>
1 parent 72e6e17 commit fc5840b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/feast_spark/job_service.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,8 @@ def Check(self, request, context):
425425

426426
class LoggingInterceptor(grpc.ServerInterceptor):
427427
def intercept_service(self, continuation, handler_call_details):
428-
logger.info(handler_call_details)
428+
if handler_call_details.method != "/grpc.health.v1.Health/Check":
429+
logger.info(handler_call_details)
429430
return continuation(handler_call_details)
430431

431432

0 commit comments

Comments
 (0)