VibecoderMcSwaggins commited on
Commit
84a8bce
Β·
1 Parent(s): d73ddfe

fix: use logger.error with stack trace for synthesis failures (CodeRabbit)

Browse files

Changed logger.warning β†’ logger.error with exc_info=True for better
production debugging when LLM synthesis falls back to template.

Files changed (1) hide show
  1. src/orchestrators/simple.py +2 -1
src/orchestrators/simple.py CHANGED
@@ -557,11 +557,12 @@ class Orchestrator:
557
  except Exception as e:
558
  # Fallback to template synthesis if LLM fails
559
  # Log error details for debugging
560
- logger.warning(
561
  "LLM synthesis failed, using template fallback",
562
  error=str(e),
563
  exc_type=type(e).__name__,
564
  evidence_count=len(evidence),
 
565
  )
566
  # Surface the error to user (MS Agent Framework pattern)
567
  # Don't silently fall back - let user know synthesis degraded
 
557
  except Exception as e:
558
  # Fallback to template synthesis if LLM fails
559
  # Log error details for debugging
560
+ logger.error(
561
  "LLM synthesis failed, using template fallback",
562
  error=str(e),
563
  exc_type=type(e).__name__,
564
  evidence_count=len(evidence),
565
+ exc_info=True, # Capture stack trace for debugging
566
  )
567
  # Surface the error to user (MS Agent Framework pattern)
568
  # Don't silently fall back - let user know synthesis degraded