Skip to content

Commit

Permalink
fix: 评测报错日志打印出堆栈
Browse files Browse the repository at this point in the history
  • Loading branch information
zgqgit committed Jun 28, 2024
1 parent 49c3dc4 commit bebeda0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/bisheng/api/services/evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ def add_evaluation_task(evaluation_id: int):
logger.info(f'evaluation task success id={evaluation_id}')

except Exception as e:
logger.error(f'evaluation task failed id={evaluation_id} {e}')
logger.exception(f'evaluation task failed id={evaluation_id} {str(e)}')
evaluation.status = EvaluationTaskStatus.failed.value
EvaluationDao.update_evaluation(evaluation=evaluation)
redis_client.delete(redis_key)

0 comments on commit bebeda0

Please sign in to comment.