logger+fmt+isort-2
Some checks failed
deploy / deploy (push) Failing after 1m6s

This commit is contained in:
Untone 2024-04-18 13:48:29 +03:00
parent 595fa945cf
commit 5c4f73d2ca

View File

@ -8,6 +8,7 @@ from ariadne.asgi import GraphQL
from starlette.routing import Route
from services.logger import root_logger as logger
from services.rediscache import redis
from services.schema import resolvers
from services.sentry import start_sentry
@ -23,7 +24,7 @@ async def start():
# pid file management
with open(DEV_SERVER_PID_FILE_NAME, "w", encoding="utf-8") as f:
f.write(str(os.getpid()))
print(f"[main] process started in {MODE} mode")
logger.info(f"process started in {MODE} mode")
# main starlette app object with ariadne mounted in root
app = Starlette(