go-ethereum/cmd
Martin Holst Swende 58ae1df684
cmd/geth: test for logging-output (#28373)
This PR is a bit in preparation for the slog work in #28187 .

Our current test re logging mostly test the internals, but we have no real end-to-end test of the logging output. This PR introduces a simple reexec-based log tester. This also relies upon a special mode in geth, which can be made to eject a set of predefined log messages (only available if the build-tag `integrationtests` is used

e.g. go run --tags=integrationtests ./cmd/geth --log.format terminal logtest

While working on this, I also noticed a quirk in the setup: when geth was configured to use a file output, then two separate handlers were used (one handler for the file, one handler for the console). Using two separate handlers means that two formatters are used, thus the formatting of any/all records happened twice. This PR changes the mechanism to use two separate io.Writers instead, which is both more optimal and fixes a bug which occurs due to a global statefulness in the formatter.
2023-10-25 17:57:12 +02:00
..
abidump all: update license headers and AUTHORS from git history (#24947) 2022-05-24 20:39:40 +02:00
abigen accounts, build, mobile: remove Andriod and iOS support 2023-02-03 12:29:07 +02:00
bootnode cmd/bootnode: fix timer leak (#27754) 2023-08-01 14:12:11 +02:00
clef eth/protocols/snap: fix snap sync failure on empty storage range (#28306) 2023-10-13 09:08:26 +02:00
devp2p go.mod: pull in the latest cloudflare API libs (#28336) 2023-10-13 17:08:38 +03:00
ethkey internal/version: use gitCommit injection in version handling code (#25851) 2022-09-23 14:08:25 +02:00
evm cmd/evm: make t8ntool handle transaction decoding errors better (#28397) 2023-10-25 14:08:52 +02:00
faucet node: remove unused error return from Attach (#27450) 2023-06-14 08:24:47 -04:00
geth cmd/geth: test for logging-output (#28373) 2023-10-25 17:57:12 +02:00
p2psim internal/version: use gitCommit injection in version handling code (#25851) 2022-09-23 14:08:25 +02:00
rlpdump all: change format 0x%x to %#x (#25221) 2022-07-04 11:03:32 +03:00
utils cmd, core, ethdb: enable Pebble on 32 bits and OpenBSD too (#28335) 2023-10-13 22:50:20 +03:00