0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-03-13 07:02:01 -05:00
forgejo/modules/log
Gusted 101efdd2e7
fix: correct logging if caller has generics
- If the caller function has generics then
`runtime.FuncForPC(...).Name()` will not show the generic types and
instead collapse it to `[...]`. Remove this suffix from the function
name.
- This fixes an issue where the logging of functions that use generics
such as `db.Find` to be logged as `]()` instead of `Find()`, as the last
dot in `[...]` was being used as a cutoff point.
- Unit test added.
2025-03-05 00:10:46 +01:00
..
color.go
color_console.go
color_console_other.go
color_console_windows.go
color_router.go
event_format.go
event_format_test.go
event_writer.go
event_writer_base.go
event_writer_buffer.go feat: add a buffer writer to the logger, for internal use (#6551) 2025-01-13 13:40:24 +00:00
event_writer_buffer_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v1.64.6 (forgejo) (#7118) 2025-03-04 21:38:35 +00:00
event_writer_conn.go
event_writer_conn_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v1.64.6 (forgejo) (#7118) 2025-03-04 21:38:35 +00:00
event_writer_console.go
event_writer_file.go
flags.go
flags_test.go
groutinelabel.go chore: Make Forgejo build with go1.24 2024-12-17 16:12:22 +01:00
groutinelabel_go1.24.go chore: Make Forgejo build with go1.24 2024-12-17 16:12:22 +01:00
groutinelabel_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v1.64.6 (forgejo) (#7118) 2025-03-04 21:38:35 +00:00
init.go
level.go
level_test.go
logger.go
logger_global.go
logger_impl.go fix: correct logging if caller has generics 2025-03-05 00:10:46 +01:00
logger_impl_test.go fix: correct logging if caller has generics 2025-03-05 00:10:46 +01:00
logger_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v1.64.6 (forgejo) (#7118) 2025-03-04 21:38:35 +00:00
manager.go
manager_test.go
misc.go
stack.go