補 OpenClaw 報表資料解析診斷
All checks were successful
CD Pipeline / deploy (push) Successful in 55s

This commit is contained in:
OoO
2026-05-13 12:53:57 +08:00
parent bff8c4941c
commit 0bdb993914
2 changed files with 27 additions and 2 deletions

View File

@@ -462,7 +462,7 @@ def _fetch_top_threats(limit: int = 10) -> List[Dict]:
try:
meta = json.loads(r[3]) if r[3] else {}
except Exception:
pass
logger.debug("[OpenClaw] price_alert metadata_json decode failed sku=%s", r[0], exc_info=True)
result.append({
"sku": r[0],
"summary": (r[1] or "")[:200],
@@ -996,7 +996,7 @@ def _call_gemini(
output=getattr(usage, 'candidates_token_count', 0) or 0,
)
except Exception:
pass
logger.debug("[OpenClaw] Gemini usage metadata parse failed caller=%s", caller, exc_info=True)
return response.text or ""
except Exception as e:
logger.error("[OpenClaw] Gemini 呼叫失敗: %s", e)