OpenClaw commited on
Commit
418f25b
·
1 Parent(s): 5d45afc

Add traceback logging

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -141,10 +141,12 @@ async def proxy(req: Request, path: str):
141
  )
142
 
143
  except Exception as e:
 
144
  key_status[key]["fail"] += 1
145
  if key_status[key]["fail"] >= 3:
146
  mark_dead(key)
147
  print(f"[ERROR] key={key[:15]} -> {type(e).__name__}: {e}")
 
148
  continue
149
 
150
  return JSONResponse(
 
141
  )
142
 
143
  except Exception as e:
144
+ import traceback
145
  key_status[key]["fail"] += 1
146
  if key_status[key]["fail"] >= 3:
147
  mark_dead(key)
148
  print(f"[ERROR] key={key[:15]} -> {type(e).__name__}: {e}")
149
+ print(f"[TRACE] {traceback.format_exc()}")
150
  continue
151
 
152
  return JSONResponse(