mirror of
https://github.com/logos-messaging/storenode-messages-counter.git
synced 2026-01-05 23:53:10 +00:00
test: print response
This commit is contained in:
parent
91ca415b19
commit
1c390072f1
@ -4,6 +4,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"database/sql"
|
"database/sql"
|
||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"net"
|
"net"
|
||||||
@ -344,7 +345,8 @@ func retrieveHistory(ctx context.Context, runId string, storenodes []peer.AddrIn
|
|||||||
|
|
||||||
nextRetryLbl:
|
nextRetryLbl:
|
||||||
for i := 0; i < maxAttempts; i++ {
|
for i := 0; i < maxAttempts; i++ {
|
||||||
logger.Info("EXECUTING NEXT!!!", zap.String("cursor", hex.EncodeToString(result.Cursor())))
|
a, _ := json.Marshal(result.Response())
|
||||||
|
logger.Info("EXECUTING NEXT!!!", zap.String("cursor", hex.EncodeToString(result.Cursor())), zap.String("RESPONSE", string(a)))
|
||||||
err = result.Next(ctx)
|
err = result.Next(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logger.Error("could not query storenode", zap.Stringer("storenode", node), zap.Error(err))
|
logger.Error("could not query storenode", zap.Stringer("storenode", node), zap.Error(err))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user