|
|
@@ -58,7 +58,11 @@ func Server(opts ...Option) middleware.Middleware {
|
|
|
params = req.(fmt.Stringer).String()
|
|
|
}
|
|
|
fromPath := param.GetFromPath(ctx)
|
|
|
- ctx = context2.AppendToContext(ctx, "from_path", fromPath+"|"+path)
|
|
|
+ if fromPath != "" {
|
|
|
+ ctx = context2.AppendToContext(ctx, "from_path", fromPath+"|"+path)
|
|
|
+ } else {
|
|
|
+ ctx = context2.AppendToContext(ctx, "from_path", path)
|
|
|
+ }
|
|
|
reply, err := handler(ctx, req)
|
|
|
if err != nil {
|
|
|
log.Errorw(
|