Open darrenvechain opened 1 month ago
Attention: Patch coverage is 45.34161%
with 352 lines
in your changes missing coverage. Please review.
Project coverage is 62.21%. Comparing base (
3d7ab12
) to head (a6111f0
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@libotony do you know a way to trigger a test log from:
ethlog "github.com/ethereum/go-ethereum/log"
Previously it was configured like so:
ethLogHandler := ethlog.NewGlogHandler(ethlog.StreamHandler(os.Stderr, ethlog.TerminalFormat(true)))
ethLogHandler.Verbosity(ethlog.LvlWarn)
ethlog.Root().SetHandler(ethLogHandler)
@libotony do you know a way to trigger a test log from:
ethlog "github.com/ethereum/go-ethereum/log"
Previously it was configured like so:
ethLogHandler := ethlog.NewGlogHandler(ethlog.StreamHandler(os.Stderr, ethlog.TerminalFormat(true))) ethLogHandler.Verbosity(ethlog.LvlWarn) ethlog.Root().SetHandler(ethLogHandler)
You can create an eth logger doing that. If I remember correctly, it was inside the discovery package, you can tweak the verbosity of eth logger to 6 or 9, will trigger the log output.
Description
Use the built in slog package.
log
package copied from latest geth. Also introduced a new flag--json-logs
which will output the logs in JSON format.Type of change
How Has This Been Tested?
log
package unit tests, from ethereum.Checklist: