File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ func ListServices(context config.Context) ListServicesResponse {
1717 request .SetDebug (context .Debug )
1818 request .TLSClientConfig (& tls.Config {InsecureSkipVerify : context .Insecure })
1919 _ , body , errs := request .
20- Timeout (1 * time .Second ).
20+ Timeout (10 * time .Second ).
2121 Get (fmt .Sprintf ("https://%s/service" , context .Endpoint )).
2222 Set ("Content-Type" , "application/json" ).
2323 Set ("User-Agent" , fmt .Sprintf ("jrctl/%s" , version .VersionString )).
@@ -26,6 +26,10 @@ func ListServices(context config.Context) ListServicesResponse {
2626 Send (`{}` ).
2727 End ()
2828 if len (errs ) > 0 {
29+ if context .Debug {
30+ fmt .Println ("Error in ListServices:" )
31+ fmt .Println (errs )
32+ }
2933 return ListServicesResponse {
3034 GenericResponse : api .NewClientError (),
3135 Payload : map [string ]ServiceProperties {},
You can’t perform that action at this time.
0 commit comments