erigon-pulse/internal
Felix Lange 86fea6cd56 internal/testlog: print file+line number of log call in test log (#20528)
* internal/testlog: print file+line number of log call in test log

This changes the unit test logger to print the actual file and line
number of the logging call instead of "testlog.go:44".

Output of 'go test -v -run TestServerListen ./p2p' before this change:

    === RUN   TestServerListen
    --- PASS: TestServerListen (0.00s)
        testlog.go:44: DEBUG[01-08|15:16:31.651] UDP listener up         addr=127.0.0.1:62678
        testlog.go:44: DEBUG[01-08|15:16:31.651] TCP listener up         addr=127.0.0.1:62678
        testlog.go:44: TRACE[01-08|15:16:31.652] Accepted connection     addr=127.0.0.1:62679

And after:

    === RUN   TestServerListen
    --- PASS: TestServerListen (0.00s)
        server.go:868: DEBUG[01-08|15:25:35.679] TCP listener up         addr=127.0.0.1:62712
        server.go:557: DEBUG[01-08|15:25:35.679] UDP listener up         addr=127.0.0.1:62712
        server.go:912: TRACE[01-08|15:25:35.680] Accepted connection     addr=127.0.0.1:62713

* internal/testlog: document use of t.Helper
2020-01-30 13:36:30 +02:00
..
build build, internal/build: drop own file/folder copier 2019-12-03 13:47:50 +01:00
cmdtest internal: fix staticcheck warnings (#20380) 2019-12-09 12:12:12 +01:00
debug Apply Turbo-Geth modifications to go-ethereum codebase 2019-11-01 21:52:03 +01:00
ethapi internal/ethapi: fix encoding of uncle headers and pending blocks (#20460) 2020-01-30 13:36:30 +02:00
guide Apply Turbo-Geth modifications to go-ethereum codebase 2019-11-01 21:52:03 +01:00
jsre internal: fix staticcheck warnings (#20380) 2019-12-09 12:12:12 +01:00
testlog internal/testlog: print file+line number of log call in test log (#20528) 2020-01-30 13:36:30 +02:00
web3ext eth, internal/web3ext: add optional first and last arguments to the admin_exportChain RPC. (#20107) 2020-01-30 13:36:30 +02:00