File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ import (
25
25
"os"
26
26
"os/signal"
27
27
"path/filepath"
28
+ "runtime/debug"
28
29
"strings"
29
30
"syscall"
30
31
@@ -107,7 +108,7 @@ func configureAPI(api *operations.DataPlaneAPI) http.Handler {
107
108
108
109
defer func () {
109
110
if err := recover (); err != nil {
110
- log .Fatalf ("Error starting Data Plane API: %s" , err )
111
+ log .Fatalf ("Error starting Data Plane API: %s\n Stacktrace from panic: \n %s " , err , string ( debug . Stack ()) )
111
112
}
112
113
}()
113
114
// configure the api here
@@ -144,7 +145,6 @@ func configureAPI(api *operations.DataPlaneAPI) http.Handler {
144
145
api .BasicAuthAuth = func (user string , pass string ) (interface {}, error ) {
145
146
return authenticateUser (user , pass , client )
146
147
}
147
-
148
148
// setup discovery handlers
149
149
api .DiscoveryGetAPIEndpointsHandler = discovery .GetAPIEndpointsHandlerFunc (func (params discovery.GetAPIEndpointsParams , principal interface {}) middleware.Responder {
150
150
uriSlice := strings .SplitN (params .HTTPRequest .RequestURI [1 :], "/" , 2 )
You can’t perform that action at this time.
0 commit comments