bsc/p2p/discover
Martin Holst Swende b8d44ed98b
log: remove lazy, remove unused interfaces, unexport methods (#28622)
This change 

- Removes interface `log.Format`, 
- Removes method `log.FormatFunc`, 
- unexports `TerminalHandler.TerminalFormat` formatting methods (renamed to `TerminalHandler.format`)
- removes the notion of `log.Lazy` values


The lazy handler was useful in the old log package, since it
could defer the evaluation of costly attributes until later in the
log pipeline: thus, if the logging was done at 'Trace', we could
skip evaluation if logging only was set to 'Info'.

With the move to slog, this way of deferring evaluation is no longer
needed, since slog introduced 'Enabled': the caller can thus do
the evaluate-or-not decision at the callsite, which is much more
straight-forward than dealing with lazy reflect-based evaluation.

Also, lazy evaluation would not work with 'native' slog, as in, these
two statements would be evaluated differently:

```golang
  log.Info("foo", "my lazy", lazyObj)
  slog.Info("foo", "my lazy", lazyObj)
```
2023-12-05 11:54:44 +01:00
..
v4wire all: use rlp.DecodeBytes instead of rlp.Decode where possible (#27994) 2023-08-24 11:47:42 +03:00
v5wire p2p/discover: concurrent TALKREQ handling (#27112) 2023-04-28 11:03:43 +02:00
common.go p2p/discover: add Table configuration and Nodes method (#27387) 2023-05-31 13:37:10 +02:00
lookup.go p2p: use errors.Is for error comparison (#24882) 2022-06-07 17:27:21 +02:00
metrics.go p2p, p2p/discover: add dial metrics (#27621) 2023-07-06 16:20:31 +02:00
node.go p2p/discover: implement v5.1 wire protocol (#21647) 2020-10-14 12:28:17 +02:00
ntp.go p2p: use slices package for sorting (#27494) 2023-06-19 07:48:12 +02:00
table_test.go p2p/discover: add Table configuration and Nodes method (#27387) 2023-05-31 13:37:10 +02:00
table_util_test.go all: update golang/x/ext and fix slice sorting fallout (#27909) 2023-08-12 00:04:12 +02:00
table.go log: remove lazy, remove unused interfaces, unexport methods (#28622) 2023-12-05 11:54:44 +01:00
v4_lookup_test.go all: update golang/x/ext and fix slice sorting fallout (#27909) 2023-08-12 00:04:12 +02:00
v4_udp_test.go all: replace log15 with slog (#28187) 2023-11-29 08:33:50 +01:00
v4_udp.go p2p, p2p/discover: add dial metrics (#27621) 2023-07-06 16:20:31 +02:00
v5_talk.go p2p/discover: concurrent TALKREQ handling (#27112) 2023-04-28 11:03:43 +02:00
v5_udp_test.go all: replace log15 with slog (#28187) 2023-11-29 08:33:50 +01:00
v5_udp.go p2p, p2p/discover: add dial metrics (#27621) 2023-07-06 16:20:31 +02:00