Skip to content

Commit

Permalink
Exclude healthcheck calls from logging interceptor (#131)
Browse files Browse the repository at this point in the history
Signed-off-by: Khor Shu Heng <khor.heng@gojek.com>

Co-authored-by: Khor Shu Heng <khor.heng@gojek.com>
  • Loading branch information
khorshuheng and khorshuheng committed Mar 30, 2022
1 parent 72e6e17 commit fc5840b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/feast_spark/job_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,8 @@ def Check(self, request, context):

class LoggingInterceptor(grpc.ServerInterceptor):
def intercept_service(self, continuation, handler_call_details):
logger.info(handler_call_details)
if handler_call_details.method != "/grpc.health.v1.Health/Check":
logger.info(handler_call_details)
return continuation(handler_call_details)


Expand Down

0 comments on commit fc5840b

Please sign in to comment.