Skip to content
This repository has been archived by the owner on Sep 23, 2023. It is now read-only.

Commit

Permalink
demoted txpool logs to Debug instead of Warn (#1094)
Browse files Browse the repository at this point in the history
  • Loading branch information
Giulio2002 authored Sep 1, 2023
1 parent 21f96bf commit b08f183
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions txpool/fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func (f *Fetch) ConnectCore() {
time.Sleep(3 * time.Second)
continue
}
f.logger.Warn("[txpool.handleStateChanges]", "err", err)
f.logger.Debug("[txpool.handleStateChanges]", "err", err)
}
}
}()
Expand All @@ -141,7 +141,7 @@ func (f *Fetch) receiveMessageLoop(sentryClient sentry.SentryClient) {
continue
}
// Report error and wait more
f.logger.Warn("[txpool.recvMessage] sentry not ready yet", "err", err)
f.logger.Debug("[txpool.recvMessage] sentry not ready yet", "err", err)
continue
}

Expand All @@ -150,7 +150,7 @@ func (f *Fetch) receiveMessageLoop(sentryClient sentry.SentryClient) {
time.Sleep(3 * time.Second)
continue
}
f.logger.Warn("[txpool.recvMessage]", "err", err)
f.logger.Debug("[txpool.recvMessage]", "err", err)
}
}
}
Expand Down Expand Up @@ -196,7 +196,7 @@ func (f *Fetch) receiveMessage(ctx context.Context, sentryClient sentry.SentryCl
if rlp.IsRLPError(err) {
f.logger.Debug("[txpool.fetch] Handling incoming message", "msg", req.Id.String(), "err", err)
} else {
f.logger.Warn("[txpool.fetch] Handling incoming message", "msg", req.Id.String(), "err", err)
f.logger.Debug("[txpool.fetch] Handling incoming message", "msg", req.Id.String(), "err", err)
}
}
if f.wg != nil {
Expand Down Expand Up @@ -402,7 +402,7 @@ func (f *Fetch) receivePeerLoop(sentryClient sentry.SentryClient) {
continue
}

f.logger.Warn("[txpool.recvPeers]", "err", err)
f.logger.Debug("[txpool.recvPeers]", "err", err)
}
}
}
Expand Down

0 comments on commit b08f183

Please sign in to comment.