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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user