forgejo/routers/common
Gusted 02de040a5e feat: add tracing logs after process is complete (#8680)
- Add the written HTTP status after completing the HTTP response. This makes it easier to find that one request that returns a different status code (ref. https://codeberg.org/Codeberg/Community/issues/2049#issue-1972600)
- Add the affected amount of rows and last insert ID after the SQL query is done, I have not yet a concrete use-case but this might help with debugging which ID corresponds to some SQL query that someone might want to take a closer look at and if some SQL query affects more than necessary amount of rows.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8680
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>
2025-07-26 05:44:58 +02:00
..
auth.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
compare.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
db.go chore(cleanup): replaces unnecessary calls to formatting functions by non-formatting equivalents (#7994) 2025-05-29 17:34:29 +02:00
errpage.go chore: move template context (#8663) 2025-07-25 11:55:15 +02:00
errpage_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
markup.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
middleware.go feat: add tracing logs after process is complete (#8680) 2025-07-26 05:44:58 +02:00
middleware_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
redirect.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
serve.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00