This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user