補上 OpenClaw best-effort 區塊紀錄
All checks were successful
CD Pipeline / deploy (push) Successful in 57s

This commit is contained in:
OoO
2026-05-13 10:59:50 +08:00
parent 7e928509a8
commit 89c400d53e
2 changed files with 6 additions and 4 deletions

View File

@@ -19,6 +19,7 @@
- `ai_call_logger` caller registryregistry 匯入失敗仍不阻擋 LLM 遙測,但已改為 warning + stack。
- Observability routepromotion 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 動態入口驗證

View File

@@ -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: