dcsunny 4 years ago
parent
commit
db1d22e396
1 changed files with 1 additions and 1 deletions
  1. 1 1
      http/middleware/logging/logging.go

+ 1 - 1
http/middleware/logging/logging.go

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