Files
OpenMAIC/app/api/classroom
Yizuki_Ame 25f7908ffb fix: add structured request context to all API error logs (#337)
* fix: add structured request context to all API error logs (#323)

Replace generic log.error messages across 23 API routes with structured, context-rich error logs that include provider, model, input summary, and other request parameters for faster incident triage.

- Hoist key request params above try blocks for catch-block access

- Add createLogger imports to routes that lacked logging

- Truncate user-controlled strings (query, requirement) to prevent log flooding

- No behavioral changes — purely observability improvement

Closes #323

* style: run prettier on all API routes

* chore: remove accidental server.log from tracking
2026-04-01 15:37:46 +08:00
..