Commit 6496cab6 authored by Ajil K's avatar Ajil K

updated the FastAPI service launching part

parent 51568714
......@@ -86,4 +86,10 @@ async def fetch_primary_device_details(data: dict):
if __name__ == "__main__":
logger.info("------------------------------------------Starting Service------------------------------------------")
try:
print("-----------------------------------------Starting Service-----------------------------------------")
logger.info("-----------------------------------------Starting Service-----------------------------------------")
uvicorn.run(app, host=app_config.host_ip, port=app_config.port_no)
except KeyboardInterrupt:
print("-----------------------------------------Service Stopped-----------------------------------------")
logger.info("---------------------------------------Service Stopped---------------------------------------")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment