mirror of
https://github.com/aljazceru/enclava.git
synced 2025-12-18 07:54:29 +01:00
more logging
This commit is contained in:
@@ -24,6 +24,7 @@ engine = create_async_engine(
|
||||
pool_recycle=3600, # Recycle connections every hour
|
||||
pool_timeout=30, # Max time to get connection from pool
|
||||
connect_args={
|
||||
"timeout": 5,
|
||||
"command_timeout": 5,
|
||||
"server_settings": {
|
||||
"application_name": "enclava_backend",
|
||||
@@ -49,6 +50,7 @@ sync_engine = create_engine(
|
||||
pool_recycle=3600, # Recycle connections every hour
|
||||
pool_timeout=30, # Max time to get connection from pool
|
||||
connect_args={
|
||||
"connect_timeout": 5,
|
||||
"application_name": "enclava_backend_sync",
|
||||
},
|
||||
)
|
||||
@@ -176,4 +178,4 @@ async def create_default_admin():
|
||||
|
||||
except Exception as e:
|
||||
logger.error(f"Failed to create default admin user: {e}")
|
||||
# Don't raise here as this shouldn't block the application startup
|
||||
# Don't raise here as this shouldn't block the application startup
|
||||
|
||||
Reference in New Issue
Block a user