(text: Any, limit: int = 240)
| 59 | |
| 60 | |
| 61 | def _truncate_text(text: Any, limit: int = 240) -> str: |
| 62 | value = str(text or "").strip() |
| 63 | if len(value) <= limit: |
| 64 | return value |
| 65 | return f"{value[:limit - 3]}..." |
| 66 | |
| 67 | |
| 68 | def _extract_error_summary(payload: Any) -> str: |
no outgoing calls
no test coverage detected