diff --git a/docs/memory/claude_inventory_validation_20260513.md b/docs/memory/claude_inventory_validation_20260513.md index 231363e..f80ba4f 100644 --- a/docs/memory/claude_inventory_validation_20260513.md +++ b/docs/memory/claude_inventory_validation_20260513.md @@ -19,6 +19,7 @@ - `ai_call_logger` caller registry:registry 匯入失敗仍不阻擋 LLM 遙測,但已改為 warning + stack。 - 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,避免真正錯誤完全無跡可查。 ## 已驗證為已修或過期 @@ -75,3 +76,4 @@ - `4256a04` 記錄 Telegram 與 MCP 缺口驗證 - `5285abe` 記錄 DB migration 覆蓋守門 - `f9d3da5` 記錄 AutoHeal DB guardrail 驗證 +- `7e92850` 記錄 Agent Actions 動態入口驗證 diff --git a/routes/openclaw_bot_routes.py b/routes/openclaw_bot_routes.py index 900bfe2..6d5f900 100644 --- a/routes/openclaw_bot_routes.py +++ b/routes/openclaw_bot_routes.py @@ -367,7 +367,7 @@ def _get_chinese_font() -> str: f.write(r.content) return cache except Exception: - pass + sys_log.debug('[OpenClawBot] Chinese font download failed', exc_info=True) return '' @@ -750,7 +750,7 @@ def query_comparison(date_str): if row and row[0]: return {'date': day_s, 'revenue': float(row[0]), 'products': row[1]} except Exception: - pass + sys_log.exception('[OpenClawBot] trend comparison fetch failed for date=%s', day_s) return {'date': day_s, 'revenue': 0, 'products': 0} return { @@ -4174,8 +4174,8 @@ def _validate_excel_format(filepath: str, filename: str) -> dict: result['rev_total'] = df['總業績'].apply( lambda x: float(str(x).replace(',', '').strip() or '0') ).sum() - except Exception: - pass + except Exception as _e: + result['warnings'].append(f'業績預覽解析失敗:{str(_e)[:80]}') result['ok'] = len(result['missing_required']) == 0 except Exception as _e: