Dev qing #14

Merged
qing merged 39 commits from dev_qing into main 2026-07-30 19:47:22 +08:00
2 changed files with 3 additions and 2 deletions
Showing only changes of commit 803d176066 - Show all commits

No files matched your search

+2 -1
View File
@@ -201,9 +201,10 @@ logs.push("gateway", "WARNING", "登录失败次数超限",
```
客户端特性:
- 纯标准库实现,异步非阻塞:内存队列 + 后台线程批量推送
- 无第三方依赖(仅依赖 pymsg 项目内置库),异步非阻塞:内存队列 + 后台线程批量推送
- fail-safe:db 不可用时静默丢弃,绝不影响业务
- 缓冲批量:队列满 50 条或超时 2 秒时自动 flush
- 长度保护:`message` 上限 8192 字节、`extra` 上限 4096 字节,超长自动截断
**db 自身**:`_log_internal()` 直接写库,无网络往返(防递归)。
+1 -1
View File
@@ -3,4 +3,4 @@ cd "$(dirname "$0")" || exit
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
#nuitka --standalone main.py
#nuitka --standalone dbv2.py