Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
Fix and log (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
guilherme-brandao authored Feb 2, 2024
1 parent 22c1209 commit 16594fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/node/appchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ func (ap *AppChain) SendUpdatedWeights(ctx context.Context, topicId uint64, resu
for _, result := range results {
extractedWeights, err := extractWeights(result.Result.Stdout)
if err != nil {
ap.Logger.Error().Err(err).Msg("Error extracting weight")
ap.Logger.Info().Err(err).Msg("Error extracting weight")
continue
}

Expand All @@ -220,7 +220,7 @@ func (ap *AppChain) SendUpdatedWeights(ctx context.Context, topicId uint64, resu
weight := &types.Weight{
TopicId: topicId,
Reputer: ap.ReputerAddress,
Worker: "upt16ar7k93c6razqcuvxdauzdlaz352sfjp2rpj3i",
Worker: peer,
Weight: cosmossdk_io_math.NewUint(parsed),
}
weights = append(weights, weight)
Expand Down
2 changes: 1 addition & 1 deletion cmd/node/execute.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func createExecutor(a api.API, appChainClient *AppChain) func(ctx echo.Context)
return echo.NewHTTPError(http.StatusBadRequest, fmt.Errorf("could not unpack request: %w", err))
}

a.Log.Debug().Str("executing inference function: ", req.FunctionID)
fmt.Printf("Request: %+v \n", req)

// Get the execution result.
code, id, results, cluster, err := a.Node.ExecuteFunction(ctx.Request().Context(), req.Request, req.Subgroup)
Expand Down

0 comments on commit 16594fe

Please sign in to comment.