include node info in neighbors logging
This commit is contained in:
parent
f7ef780926
commit
7686b4e9f7
2
main.go
2
main.go
@ -185,7 +185,7 @@ func cliJoin(ctx context.Context, cmd *cli.Command) error {
|
||||
node.SuccessorFailed()
|
||||
}
|
||||
pred, succ := node.Neighbors(nil)
|
||||
slog.InfoContext(ctx, "neighbors", slog.Any("predecessor", pred), slog.Any("successors", succ))
|
||||
slog.InfoContext(ctx, "neighbors", slog.Any("node", node), slog.Any("predecessor", pred), slog.Any("successors", succ))
|
||||
}
|
||||
}()
|
||||
<-ctx.Done()
|
||||
|
Loading…
Reference in New Issue
Block a user