mirror of
https://github.com/snailyp/gemini-balance.git
synced 2026-09-05 07:26:39 +08:00
style(router): 优化错误日志路由代码格式
- 移除多余的空白行 - 简化删除所有错误日志的日志记录逻辑 - 统一代码缩进和空行格式
This commit is contained in:
@@ -194,8 +194,8 @@ async def delete_all_error_logs_api(request: Request):
|
|||||||
raise HTTPException(status_code=401, detail="Not authenticated")
|
raise HTTPException(status_code=401, detail="Not authenticated")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
deleted_count = await error_log_service.process_delete_all_error_logs()
|
await error_log_service.process_delete_all_error_logs()
|
||||||
logger.info(f"Successfully deleted all {deleted_count} error logs.")
|
logger.info("Successfully deleted all error logs.")
|
||||||
# No body needed for 204 response
|
# No body needed for 204 response
|
||||||
return Response(status_code=status.HTTP_204_NO_CONTENT)
|
return Response(status_code=status.HTTP_204_NO_CONTENT)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
Reference in New Issue
Block a user