Commit bc478009 authored by Francois's avatar Francois

Proposal for adding a ":" for stack trace printout

Mainly useful for Sublime users with goto anything.
parent d8614e80
......@@ -818,8 +818,8 @@ func (p *ControllerRegistor) recoverPanic(rw http.ResponseWriter, r *http.Reques
if !ok {
break
}
Critical(file, line)
stack = stack + fmt.Sprintln(file, line)
Critical(fmt.Sprintf("%s:%d", file, line))
stack = stack + fmt.Sprintln(fmt.Sprintf("%s:%d", file, line))
}
middleware.ShowErr(err, rw, r, stack)
}
......@@ -840,7 +840,7 @@ func (p *ControllerRegistor) recoverPanic(rw http.ResponseWriter, r *http.Reques
if !ok {
break
}
Critical(file, line)
Critical(fmt.Sprintf("%s:%d", file, line))
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment