This commit is contained in:
parent
d62e229f63
commit
1635976edf
2
main.py
2
main.py
|
@ -21,6 +21,7 @@ logger.setLevel(logging.DEBUG)
|
|||
|
||||
|
||||
async def start_up():
|
||||
logger.info('[main] starting...')
|
||||
await redis.connect()
|
||||
|
||||
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:
|
||||
f.write(str(os.getpid()))
|
||||
else:
|
||||
logger.info('[main] production mode')
|
||||
try:
|
||||
import sentry_sdk
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user