This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
- Observability route:promotion review RAG 相似查詢、PPT audit history 缺表、host health probe 寫入、MCP 24h summary 缺表等 fail-safe 區塊已改成 debug/warning log,不再完全靜默。
|
||||
- Google Drive import:`services/import_service.py` 的日期 `IN (...)` 刪除/驗證查詢已改為 SQLAlchemy bind params,不再把 DataFrame 日期值拼進 SQL 字串。
|
||||
- OpenClaw Bot:中文字型下載、趨勢同期 DB 查詢、匯入格式業績預覽解析等 best-effort 區塊已補 debug/exception/warnings,避免真正錯誤完全無跡可查。
|
||||
- `ai_call_logger._write_to_db` 不是死函數:它是 `_async_write()` 的 daemon thread target;decorator token 自動抽取與 stack caller 推斷的 best-effort 失敗也已補 debug log。
|
||||
|
||||
## 已驗證為已修或過期
|
||||
|
||||
@@ -79,3 +80,4 @@
|
||||
- `f9d3da5` 記錄 AutoHeal DB guardrail 驗證
|
||||
- `7e92850` 記錄 Agent Actions 動態入口驗證
|
||||
- `89c400d` 補上 OpenClaw best-effort 區塊紀錄
|
||||
- `ec5a22d` 記錄 Telegram pending action 驗證
|
||||
|
||||
@@ -290,7 +290,7 @@ def logged_ai_call(
|
||||
try:
|
||||
_auto_extract_tokens(ctx, result)
|
||||
except Exception:
|
||||
pass
|
||||
logger.debug("[AICallLogger] auto token extraction failed", exc_info=True)
|
||||
return result
|
||||
return wrapper
|
||||
return deco
|
||||
@@ -451,5 +451,5 @@ def infer_caller_from_stack(default: str = 'unknown') -> str:
|
||||
if module and module.__name__:
|
||||
return module.__name__.split('.')[-1][:64]
|
||||
except Exception:
|
||||
pass
|
||||
logger.debug("[AICallLogger] infer caller from stack failed", exc_info=True)
|
||||
return default
|
||||
|
||||
Reference in New Issue
Block a user