summaryrefslogtreecommitdiffstats
path: root/agl_service_voiceagent/server.py
diff options
context:
space:
mode:
Diffstat (limited to 'agl_service_voiceagent/server.py')
-rw-r--r--agl_service_voiceagent/server.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/agl_service_voiceagent/server.py b/agl_service_voiceagent/server.py
index d8ce785..aa107dc 100644
--- a/agl_service_voiceagent/server.py
+++ b/agl_service_voiceagent/server.py
@@ -18,12 +18,12 @@ import grpc
from concurrent import futures
from agl_service_voiceagent.generated import voice_agent_pb2_grpc
from agl_service_voiceagent.servicers.voice_agent_servicer import VoiceAgentServicer
-from agl_service_voiceagent.utils.config import get_config_value
+from agl_service_voiceagent.utils.config import get_config_value, get_logger
def run_server():
+ logger = get_logger()
SERVER_URL = get_config_value('SERVER_ADDRESS') + ":" + str(get_config_value('SERVER_PORT'))
print("Starting Voice Agent Service...")
- print(f"Server running at URL: {SERVER_URL}")
print(f"STT Model Path: {get_config_value('STT_MODEL_PATH')}")
print(f"Audio Store Directory: {get_config_value('BASE_AUDIO_DIR')}")
server = grpc.server(futures.ThreadPoolExecutor(max_workers=10))
@@ -31,5 +31,7 @@ def run_server():
server.add_insecure_port(SERVER_URL)
print("Press Ctrl+C to stop the server.")
print("Voice Agent Server started!")
+ print(f"Server running at URL: {SERVER_URL}")
+ logger.info(f"Voice Agent Service started in server mode! Server running at URL: {SERVER_URL}")
server.start()
server.wait_for_termination() \ No newline at end of file