mirror of
https://github.com/THU-MAIC/OpenMAIC.git
synced 2026-11-04 08:23:04 +08:00
* 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