diff --git a/go/obsclient/obsclient.go b/go/obsclient/obsclient.go index ea1fe127ae..dfae081095 100644 --- a/go/obsclient/obsclient.go +++ b/go/obsclient/obsclient.go @@ -2,7 +2,6 @@ package obsclient import ( "errors" - "fmt" "math/big" "strings" @@ -91,8 +90,6 @@ func (oc *ObsClient) BatchHeaderByHash(hash gethcommon.Hash) (*common.BatchHeade func (oc *ObsClient) HealthStatusOfNode() (bool, error) { var healthy *hostcommon.HealthCheck err := oc.rpcClient.Call(&healthy, rpc.Health) - // log to test - fmt.Println("HealthStatusOfNode", healthy, err) if err != nil { return false, err } diff --git a/tools/obscuroscan_v2/backend/webserver/webserver_routes_items.go b/tools/obscuroscan_v2/backend/webserver/webserver_routes_items.go index 426f211974..3086599dd1 100644 --- a/tools/obscuroscan_v2/backend/webserver/webserver_routes_items.go +++ b/tools/obscuroscan_v2/backend/webserver/webserver_routes_items.go @@ -22,12 +22,8 @@ func routeItems(r *gin.Engine, server *WebServer) { func (w *WebServer) getHealthStatus(c *gin.Context) { healthStatus, err := w.backend.GetHealthStatus() - if err != nil { - errorHandler(c, fmt.Errorf("unable to execute request %w", err), w.logger) - return - } - c.JSON(http.StatusOK, healthStatus) + c.JSON(http.StatusOK, gin.H{"result": healthStatus, "errors": fmt.Sprintf("%s", err)}) } func (w *WebServer) getLatestBatch(c *gin.Context) {