From 91c05c5e6b25414a9d081996162d37e02906ca1d Mon Sep 17 00:00:00 2001 From: Manav Darji Date: Thu, 5 Oct 2023 14:58:59 +0530 Subject: [PATCH] logs --- checkpoint/client/rest/query_milestone.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/checkpoint/client/rest/query_milestone.go b/checkpoint/client/rest/query_milestone.go index 404941187..b0427d629 100644 --- a/checkpoint/client/rest/query_milestone.go +++ b/checkpoint/client/rest/query_milestone.go @@ -33,7 +33,7 @@ func milestoneLatestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc { // Fetch latest milestone result, height, err := cliCtx.QueryWithData(fmt.Sprintf("custom/%s/%s", types.QuerierRoute, types.QueryLatestMilestone), nil) - RestLogger.Info("***** fetching latest milestone", "height", height) + RestLogger.Info("***** fetching latest milestone", "height", height, "hf", helper.GetAalborgHardForkHeight()) // Return status code 503 (Service Unavailable) if HF hasn't been activated if height < helper.GetAalborgHardForkHeight() { @@ -70,7 +70,7 @@ func milestoneCountHandlerFn(cliCtx context.CLIContext) http.HandlerFunc { countBytes, height, err := cliCtx.QueryWithData(fmt.Sprintf("custom/%s/%s", types.QuerierRoute, types.QueryCount), nil) - RestLogger.Info("***** fetching milestone count", "height", height) + RestLogger.Info("***** fetching milestone count", "height", height, "hf", helper.GetAalborgHardForkHeight()) // Return status code 503 (Service Unavailable) if HF hasn't been activated if height < helper.GetAalborgHardForkHeight() { @@ -134,7 +134,7 @@ func milestoneByNumberHandlerFn(cliCtx context.CLIContext) http.HandlerFunc { // query milestone res, height, err := cliCtx.QueryWithData(fmt.Sprintf("custom/%s/%s", types.QuerierRoute, types.QueryMilestoneByNumber), queryParams) - RestLogger.Info("***** fetching milestone by number", "height", height) + RestLogger.Info("***** fetching milestone by number", "height", height, "hf", helper.GetAalborgHardForkHeight()) // Return status code 503 (Service Unavailable) if HF hasn't been activated if height < helper.GetAalborgHardForkHeight() { @@ -165,7 +165,7 @@ func latestNoAckMilestoneHandlerFn(cliCtx context.CLIContext) http.HandlerFunc { result, height, err := cliCtx.QueryWithData(fmt.Sprintf("custom/%s/%s", types.QuerierRoute, types.QueryLatestNoAckMilestone), nil) - RestLogger.Info("***** fetching latest no-ack milestone", "height", height) + RestLogger.Info("***** fetching latest no-ack milestone", "height", height, "hf", helper.GetAalborgHardForkHeight()) // Return status code 503 (Service Unavailable) if HF hasn't been activated if cliCtx.Height < helper.GetAalborgHardForkHeight() { @@ -225,7 +225,7 @@ func noAckMilestoneByIDHandlerFn(cliCtx context.CLIContext) http.HandlerFunc { result, height, err := cliCtx.QueryWithData(fmt.Sprintf("custom/%s/%s", types.QuerierRoute, types.QueryNoAckMilestoneByID), queryID) - RestLogger.Info("***** fetching no-ack milestone by ID", "height", height) + RestLogger.Info("***** fetching no-ack milestone by ID", "height", height, "hf", helper.GetAalborgHardForkHeight()) // Return status code 503 (Service Unavailable) if HF hasn't been activated if height < helper.GetAalborgHardForkHeight() {