Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Stats logging #4596

Merged
merged 2 commits into from
May 3, 2024
Merged

Stats logging #4596

merged 2 commits into from
May 3, 2024

Conversation

pwojcikdev
Copy link
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

@pwojcikdev pwojcikdev merged commit 87235d7 into nanocurrency:develop May 3, 2024
26 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants