mirror of
https://github.com/snailyp/gemini-balance.git
synced 2026-08-28 03:30:07 +08:00
fix(request_log): 修复日志记录中受影响行数的显示
This commit is contained in:
@@ -40,7 +40,7 @@ async def delete_old_request_logs_task():
|
|||||||
|
|
||||||
result = await database.execute(query)
|
result = await database.execute(query)
|
||||||
logger.info(
|
logger.info(
|
||||||
f"Request logs older than {cutoff_date} potentially deleted. Rows affected: {result.rowcount if result else 'N/A'}"
|
f"Request logs older than {cutoff_date} potentially deleted. Rows affected: {result}"
|
||||||
)
|
)
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
Reference in New Issue
Block a user