This commit is contained in:
2
main.py
2
main.py
@@ -21,6 +21,7 @@ logger.setLevel(logging.DEBUG)
|
|||||||
|
|
||||||
|
|
||||||
async def start_up():
|
async def start_up():
|
||||||
|
logger.info('[main] starting...')
|
||||||
await redis.connect()
|
await redis.connect()
|
||||||
|
|
||||||
task = asyncio.create_task(notifications_worker())
|
task = asyncio.create_task(notifications_worker())
|
||||||
@@ -31,6 +32,7 @@ async def start_up():
|
|||||||
with open(DEV_SERVER_PID_FILE_NAME, 'w', encoding='utf-8') as f:
|
with open(DEV_SERVER_PID_FILE_NAME, 'w', encoding='utf-8') as f:
|
||||||
f.write(str(os.getpid()))
|
f.write(str(os.getpid()))
|
||||||
else:
|
else:
|
||||||
|
logger.info('[main] production mode')
|
||||||
try:
|
try:
|
||||||
import sentry_sdk
|
import sentry_sdk
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user