less verbose logging

This commit is contained in:
Branden J Brown 2025-03-15 20:41:14 -04:00
parent 773015dd15
commit dd693fb000

View File

@ -77,7 +77,7 @@ func (n *Node) Check(ctx context.Context) error {
func (n *Node) find(w http.ResponseWriter, r *http.Request) {
s := r.PathValue("id")
slog.InfoContext(r.Context(), "received find", slog.String("id", s), slog.String("from", r.RemoteAddr))
slog.DebugContext(r.Context(), "received find", slog.String("id", s), slog.String("from", r.RemoteAddr))
id, err := chord.ParseID(s)
if err != nil {
writeError(w, http.StatusBadRequest, err.Error())
@ -89,7 +89,7 @@ func (n *Node) find(w http.ResponseWriter, r *http.Request) {
return
}
_, addr := p.Values()
slog.InfoContext(r.Context(), "tell found", slog.String("id", s), slog.String("addr", addr.String()))
slog.DebugContext(r.Context(), "tell found", slog.String("id", s), slog.String("addr", addr.String()))
writeOk(w, addr)
}