wip: async logging

This commit is contained in:
grillazz
2025-07-26 19:25:46 +02:00
parent 6ec8a3ce0a
commit a99a0e780b
9 changed files with 12 additions and 12 deletions

View File

@@ -15,9 +15,9 @@ logger = AppLogger().get_logger()
async def tick():
async with AsyncSessionFactory() as session:
stmt = text("select 1;")
logger.info(f">>>> Be or not to be...{datetime.now()}")
await logger.ainfo(f">>>> Be or not to be...{datetime.now()}")
result = await session.execute(stmt)
logger.info(f">>>> Result: {result.scalar()}")
await logger.ainfo(f">>>> Result: {result.scalar()}")
return True