Skip to content

Commit 7a8e8ae

Browse files
committed
improve p2p messaging
Signed-off-by: Ettore Di Giacinto <[email protected]>
1 parent d3811a0 commit 7a8e8ae

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

core/p2p/p2p.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,14 +192,13 @@ func discoveryTunnels(ctx context.Context, n *node.Node, token, servicesID strin
192192
return
193193
default:
194194
time.Sleep(5 * time.Second)
195-
zlog.Debug().Msg("Searching for workers")
196195

197196
data := ledger.LastBlock().Storage[servicesID]
198197

199198
zlog.Debug().Any("data", ledger.LastBlock().Storage).Msg("Ledger data")
200199

201200
for k, v := range data {
202-
zlog.Info().Msgf("Found worker %s", k)
201+
zlog.Debug().Msgf("New worker found in the ledger data '%s'", k)
203202
nd := &NodeData{}
204203
if err := v.Unmarshal(nd); err != nil {
205204
zlog.Error().Msg("cannot unmarshal node data")

0 commit comments

Comments
 (0)