-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Labels
Description
See: #17783
We currently have adhoc experimental tracing in common/dbg/experiments.go.
These are generally useful for tracking down state root mismatches, reciept hash mismatches etc where the standard logging just reports the top level error.
The issue with this type of tracing is that to be useful it is also generally verbose and even at a trace logging level will overwelm the standard log files.
At the moment the strategy is to log this to the console & switch it on and off via deb environment variables.
As this is generally useful it needs to have an API developed which allows:
- Specification of output location
- Conditional switching on and off of featires - both externally and via an internal API for tests & web API for client usage.
- Movement of specific traces into housting pakages (e.g. kv to avoid code duplication)