Skip to content

Stats logging#4596

Merged
pwojcikdev merged 2 commits intonanocurrency:developfrom
pwojcikdev:stats-logging
May 3, 2024
Merged

Stats logging#4596
pwojcikdev merged 2 commits intonanocurrency:developfrom
pwojcikdev:stats-logging

Conversation

@pwojcikdev
Copy link
Copy Markdown
Contributor

This allows logging individual stat counter increments. This is useful for debugging tests. This functionality can be enabled by setting NANO_LOG_STATS=[1,true,on] environment variable.

Example output:

[2024-05-02 18:43:27.939] [node_16gzg] [stats] [debug] Stat: bootstrap_server::request::in += 1
[2024-05-02 18:43:27.939] [node_16gzg] [stats] [debug] Stat: bootstrap_server_request::blocks::in += 1
[2024-05-02 18:43:27.939] [node_3e5x4] [stats] [debug] Stat: traffic_tcp::all::out += 51
[2024-05-02 18:43:27.939] [node_3e5x4] [stats] [debug] Stat: bootstrap_ascending::track::in += 1
[2024-05-02 18:43:27.939] [node_3e5x4] [stats] [debug] Sample: bootstrap_tag_duration -> 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants