gear
gear copied to clipboard
Even better logging fmt for the `gear-node-loader`
- Need some balance in logging information. Logging at what field the log was done or the stack of functions with full path is noisy. Need to make from this
at utils/node-loader/src/batch_pool.rs:167
in gear_node_loader::batch_pool::run_batch_impl
in gear_node_loader::batch_pool::run_batch with seed: 9927380856200300910, batch_type: "upload_program"
in gear_node_loader::batch_pool::run
something like this:
[gear_node_loader::batch_pool::run_batch] seed: 9927380856200300910, batch_type: "upload_program"
- Implement logging to different destinations a different level information. For example, we can log to file data with TRACE max level, but to stdout up to DEBUG.
sth like https://crates.io/crates/slog could help, but it is outdated tbh
It's mostly about how formatter is implemented for the tracing