Skip to content

Commit

Permalink
change logging to debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Dobatymo committed Nov 17, 2024
1 parent 000da9f commit e34d488
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dht.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
4 changes: 2 additions & 2 deletions torsniff.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit e34d488

Please sign in to comment.