sususu
a5795047bf
fix(api/middleware): finalize request logging on handler panic
...
Defer wrapper.Finalize(c) in RequestLoggingMiddleware, stamp a 500 status when
a handler panics before writing a response, and mark the wrapper finalized so
outer recovery middleware does not reopen a second streaming log writer. Also
pass the chunk channel and stream writer by value to processStreamingChunks to
avoid racing with Finalize clearing wrapper fields.
Fixes #7161
2026-11-01 22:06:36 +08:00
..
2026-11-01 15:28:05 +08:00
2026-11-01 22:06:36 +08:00
2026-10-27 23:11:21 +08:00
2026-10-08 00:33:27 +08:00
2026-10-19 12:11:57 +08:00
2026-10-27 23:11:21 +08:00
2026-09-02 20:02:42 +08:00
2026-10-27 23:11:21 +08:00
2026-10-27 23:11:21 +08:00
2026-10-27 23:11:21 +08:00
2026-10-24 01:44:17 +08:00
2026-10-27 23:11:21 +08:00
2026-10-28 10:31:07 +08:00
2026-10-26 10:09:56 +08:00
2026-10-26 10:09:56 +08:00
2026-10-28 10:31:07 +08:00
2026-10-28 10:31:07 +08:00
2026-10-14 05:07:44 +08:00
2026-10-03 00:01:42 +08:00
2026-10-11 14:08:49 +08:00
2026-10-21 23:04:23 +08:00
2026-10-16 07:20:24 +08:00
2026-10-26 16:25:39 +08:00
2026-09-27 14:42:26 +08:00
2026-09-27 14:42:26 +08:00
2026-10-11 11:09:17 +08:00
2026-07-26 14:31:45 +08:00
2026-09-21 04:13:44 +08:00
2026-10-30 07:06:33 +08:00
2026-10-30 07:06:33 +08:00
2026-10-13 07:04:51 +08:00
2026-10-27 23:11:21 +08:00
2026-10-04 04:23:31 +08:00
2026-10-02 05:34:30 +08:00
2026-10-28 02:34:39 +08:00
2026-10-02 05:34:30 +08:00
2026-10-26 10:09:56 +08:00
2026-10-29 15:48:45 +08:00
2026-10-02 05:34:30 +08:00
2026-10-21 08:07:38 +08:00
2026-09-27 14:42:26 +08:00
2026-10-23 17:09:19 +08:00
2026-10-29 15:48:45 +08:00
2026-11-01 22:06:36 +08:00