From e34d4889dffa0c13b3ad088b25e5d7aec989a388 Mon Sep 17 00:00:00 2001 From: Dobatymo Date: Sun, 17 Nov 2024 11:43:25 +0800 Subject: [PATCH] change logging to debug --- dht.go | 2 +- torsniff.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dht.go b/dht.go index 4b2dbc0..91514ab 100644 --- a/dht.go +++ b/dht.go @@ -368,7 +368,7 @@ func (d *dht) send(dict map[string]interface{}, to net.UDPAddr) error { _, err := d.conn.WriteToUDP(bencode.Encode(dict), &to) if err != nil { - slog.Info("Failed to write UDP: %s", err) + slog.Debug("Failed to write UDP: %s", err) } return err } diff --git a/torsniff.go b/torsniff.go index 4c20c2b..f570367 100644 --- a/torsniff.go +++ b/torsniff.go @@ -126,7 +126,7 @@ func (t *torsniff) run() error { dht.run() - slog.Info("running, it may take a few minutes...") + slog.Debug("running, it may take a few minutes...") for { select { @@ -165,7 +165,7 @@ func (t *torsniff) work(ac *announcement, tokens chan struct{}) { meta, err := wire.fetch() if err != nil { - slog.Warn("Banned", "addr", peerAddr, "error", err) + slog.Debug("Banned", "addr", peerAddr, "error", err) t.blacklist.add(peerAddr) return }