Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Drastically reduce logging verbosity #1785

Closed
q9f opened this issue Oct 1, 2020 · 2 comments
Closed

Drastically reduce logging verbosity #1785

q9f opened this issue Oct 1, 2020 · 2 comments

Comments

@q9f
Copy link
Contributor

q9f commented Oct 1, 2020

I'm running a nimbus node on Medalla from latest master.

Related to #1779 it's difficult to see what the node is doing. Mainly due to too many messages in INFO level.

The default logging should be changed from DEBUG to INFO.

The INFO level should be drastically reduced.

24h of JSON log file create a 2+ GB file:

2.1G -rw-r--r-- 1 user users 2.1G Oct  1 12:42 beacon_node.log

24h of piping the standard output to a file, generates 3+ GB:

3.0G -rw-r--r-- 1 user users 3.0G Oct  1 12:49 nimbus-out.log

It should be reduced by 3 orders of magnitude if possible :)

@q9f q9f changed the title Drastically reduce logging Drastically reduce logging verbosity Oct 1, 2020
@tersec
Copy link
Contributor

tersec commented Oct 1, 2020

The default logging should be changed from DEBUG to INFO.

#1777 does exactly this. It's in devel already and will be merged into master whenever the next merge happens.

mratsim added a commit that referenced this issue Oct 1, 2020
mratsim added a commit that referenced this issue Oct 1, 2020
* Update log level - #1779 #1785

* Address review comments

* Document the logging strategy [skip ci]
@mratsim
Copy link
Contributor

mratsim commented Oct 2, 2020

This has been solved in master. Log level have been significantly shuffled, and INFO has been made the default.

You should expect 2 log lines per slot/every 6 seconds + the occasional finality message with default logging.

image

Logging strategy has been documented as well at https://github.com/status-im/nim-beacon-chain/blob/c5a58555/docs/logging.md

@mratsim mratsim closed this as completed Oct 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants