mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 23:18:15 -05:00
**What type of PR is this?** Feature **What does this PR do? Why is it needed?** This PR sets the logging verbosity level per writer hook (per output: terminal, log file, etc) rather than setting a global logrus level which limits customizing each output. it set the terminal and log file output to be the same as the user provided `--verbosity` flag. so nothing changes in reality. it also introduces a `SetLoggingLevel()` to be used instead of `logrus.SetLeveL()` in order for us to be able to set a different baseline level later on if needed. (my next PR will use this). I'm only making this change in the `beacon-chain` and `validator` apps, skipping tools like `bootnode` and `client-stats`.
4.1 KiB
4.1 KiB