less verbose client logging
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user