feat: 添加系统日志功能,记录运行时错误和AI调用失败,提供日志查看页面

This commit is contained in:
2026-03-14 00:32:20 +08:00
parent d2d63d5e61
commit dc7efb8ff8
10 changed files with 208 additions and 2 deletions

View File

@@ -20,6 +20,9 @@
<p class="alert">{{ message }}</p>
<div class="actions" style="margin-top: 10px;">
<a class="btn" href="{{ back_url }}">返回上一页</a>
{% if status_code >= 500 %}
<a class="btn btn-light" href="{{ url_for('system_logs_page') }}">查看系统日志</a>
{% endif %}
<button class="btn btn-light" type="button" onclick="history.back()">浏览器返回</button>
</div>
</section>