mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-02-04 10:05:17 -05:00
**What type of PR is this?** Feature **What does this PR do? Why is it needed?** This PR adds a `--log.vmodule` flag to the beacon-chain and validator apps, that allows setting a different verbosity for every* package. *: not every package, but most packages. (all packages that define their logger variable with a `package` field) Combined with the `--verbosity` flag this allows users to control exactly what they see. This affects both the terminal and the log file (`--log-file`), but not the ephemeral debug log file. example usage: ``` ./beacon-chain --log.vmodule=beacon-chain/p2p=info,beacon-chain/sync=error,beacon-chain/sync/initial-sync=debug ``` There are improvements to be done later, like accepting just the package name instead of the full path, etc.