Skip to content

Commit 5512f7f

Browse files
committed
fix(request_log): 修复日志记录中受影响行数的显示
1 parent 1508249 commit 5512f7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/service/request_log/request_log_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ async def delete_old_request_logs_task():
4040

4141
result = await database.execute(query)
4242
logger.info(
43-
f"Request logs older than {cutoff_date} potentially deleted. Rows affected: {result.rowcount if result else 'N/A'}"
43+
f"Request logs older than {cutoff_date} potentially deleted. Rows affected: {result}"
4444
)
4545

4646
except Exception as e:

0 commit comments

Comments
 (0)