1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-27 13:55:56 +00:00

update Blocks module

This commit is contained in:
Gerasimos (Makis) Maropoulos
2023-09-24 17:35:49 +03:00
parent e0ac28c1bb
commit e7b40398aa
16 changed files with 198 additions and 105 deletions

View File

@@ -562,6 +562,14 @@ func (r *Route) Trace(w io.Writer, stoppedIndex int) {
file, line = context.HandlerFileLineRel(h)
// If a middleware, e.g (macro) which changes the main handler index,
// skip it.
// TODO: think of it.
if file == "<autogenerated>" {
// At PartyConfigure, 2nd+ level of routes it will get <autogenerated> but in reallity will be the same as the caller.
file = r.RegisterFileName
line = r.RegisterLineNumber
}
if file == r.SourceFileName && line == r.SourceLineNumber {
continue
}