Skip to content

Commit

Permalink
feat: update logging
Browse files Browse the repository at this point in the history
  • Loading branch information
keivanipchihagh committed Apr 22, 2024
1 parent 45eb024 commit 2ca06f1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/base_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ def __init__(
self.health_servicer: health.HealthServicer
self._configure_health_server(healthcheck_n_workers)

logger.debug(f"RPC initialized with {n_workers} worker(s).")
logger.debug(f"gRPC server initialized with {n_workers} worker(s).")


def start(self) -> None:
"""
Starts the server in blocking mode.
"""
logger.debug(f"RPC Listening on '{self.target}'")
logger.debug(f"gRPC server Listening on '{self.target}'.")
self.server.start()
self.server.wait_for_termination()

Expand Down Expand Up @@ -85,6 +85,7 @@ def _configure_health_server(self, n_threads: int = 1):
experimental_thread_pool = futures.ThreadPoolExecutor(max_workers=n_threads),
)
health_pb2_grpc.add_HealthServicer_to_server(self.health_servicer, self.server)
logger.debug(f"gRPC server healthcheck initialized with {n_threads} worker(s).")


def set_service_to_serving(self, service: str) -> None:
Expand Down

0 comments on commit 2ca06f1

Please sign in to comment.