mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-03-13 07:02:01 -05:00
- 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. |
||
---|---|---|
.. | ||
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 | ||
event_writer_buffer_test.go | ||
event_writer_conn.go | ||
event_writer_conn_test.go | ||
event_writer_console.go | ||
event_writer_file.go | ||
flags.go | ||
flags_test.go | ||
groutinelabel.go | ||
groutinelabel_go1.24.go | ||
groutinelabel_test.go | ||
init.go | ||
level.go | ||
level_test.go | ||
logger.go | ||
logger_global.go | ||
logger_impl.go | ||
logger_impl_test.go | ||
logger_test.go | ||
manager.go | ||
manager_test.go | ||
misc.go | ||
stack.go |