mirror of
1
Fork 0
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 Rewrite logger system (#24726) 2023-05-21 22:35:11 +00:00
color_console.go log: journald integration (#2869) 2024-08-09 07:49:13 +00:00
color_console_other.go [CHORE] Fix darwin compatibility 2024-08-09 17:44:41 +02:00
color_console_windows.go Rewrite logger system (#24726) 2023-05-21 22:35:11 +00:00
color_router.go Rewrite logger system (#24726) 2023-05-21 22:35:11 +00:00
event_format.go log: journald integration (#2869) 2024-08-09 07:49:13 +00:00
event_format_test.go log: journald integration (#2869) 2024-08-09 07:49:13 +00:00
event_writer.go Rewrite logger system (#24726) 2023-05-21 22:35:11 +00:00
event_writer_base.go Reduce some allocations in type conversion (#26772) 2023-08-29 00:43:16 +08:00
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 Rewrite logger system (#24726) 2023-05-21 22:35:11 +00:00
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 Rewrite logger system (#24726) 2023-05-21 22:35:11 +00:00
event_writer_file.go Use stderr as fallback if the log file can't be opened (#26074) 2023-07-24 04:57:21 +00:00
flags.go log: journald integration (#2869) 2024-08-09 07:49:13 +00:00
flags_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
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 Do not output "Trace" level logs from process manager by default (#24952) 2023-05-27 10:55:24 +00:00
level.go log: journald integration (#2869) 2024-08-09 07:49:13 +00:00
level_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
logger.go Rewrite logger system (#24726) 2023-05-21 22:35:11 +00:00
logger_global.go Fix sub-command log level (#25537) 2023-06-28 08:02:06 +02:00
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 Do not output "Trace" level logs from process manager by default (#24952) 2023-05-27 10:55:24 +00:00
manager_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
misc.go Rewrite logger system (#24726) 2023-05-21 22:35:11 +00:00
stack.go Rewrite logger system (#24726) 2023-05-21 22:35:11 +00:00