less verbose client logging

This commit is contained in:
Branden J Brown 2025-03-15 20:47:28 -04:00
parent dd75fb281a
commit f3c98d4153

View File

@ -40,7 +40,7 @@ func (cl *Client) FindSuccessor(ctx context.Context, s chord.Peer, id chord.ID)
if err != nil {
return chord.Peer{}, err
}
slog.InfoContext(ctx, "find", slog.String("url", url.String()))
slog.DebugContext(ctx, "find", slog.String("url", url.String()))
resp, err := cl.HTTP.Do(req)
if err != nil {
return chord.Peer{}, err
@ -49,7 +49,7 @@ func (cl *Client) FindSuccessor(ctx context.Context, s chord.Peer, id chord.ID)
if err != nil {
return chord.Peer{}, fmt.Errorf("%w (%s)", err, resp.Status)
}
slog.InfoContext(ctx, "found", slog.String("peer", p.String()))
slog.DebugContext(ctx, "found", slog.String("peer", p.String()))
return chord.Address(p), nil
}