File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ import (
28
28
"github.com/sirupsen/logrus"
29
29
goahttp "goa.design/goa/v3/http"
30
30
"goa.design/goa/v3/http/middleware"
31
+ goamiddleware "goa.design/goa/v3/middleware"
31
32
)
32
33
33
34
// Server is the actual server
@@ -70,7 +71,7 @@ func Server(home string) http.Handler {
70
71
// to correlate.
71
72
func errorHandler (logger * logrus.Logger ) func (context.Context , http.ResponseWriter , error ) {
72
73
return func (ctx context.Context , w http.ResponseWriter , err error ) {
73
- id := ctx .Value (middleware . RequestID ).(string )
74
+ id := ctx .Value (goamiddleware . RequestIDKey ).(string )
74
75
w .Write ([]byte ("[" + id + "] encoding: " + err .Error ()))
75
76
logger .Printf ("[%s] ERROR: %s" , id , err .Error ())
76
77
}
You can’t perform that action at this time.
0 commit comments