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

Add logging section to rpc config to optionally disable logging #2793

Merged
merged 1 commit into from
Jun 4, 2020

Conversation

wezrule
Copy link
Contributor

@wezrule wezrule commented Jun 1, 2020

@JSON's ramdisk node is crashing when pumping out 2000BPS process RPC calls. There are some boost standard error outputs suggesting problems with rotating the files at this high logging output speed.
image

However I cannot reproduce this even, even with spamming 50MB of log messages per second over a few threads. Seems to be something special about his set-up, removing the logging output manually fixed the issue for him, so am adding a logging section to the rpc config which allows these messages to be disabled (they are enabled by default). This can be extended in the future to change the rotation/max size size and maybe some other options, but right now this should be sufficient.

@wezrule wezrule added this to the V21.0 milestone Jun 1, 2020
@wezrule wezrule self-assigned this Jun 1, 2020
Copy link
Contributor

@guilhermelawless guilhermelawless left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested loggging on/off as node process, child process and out of process, working as expected.

@zhyatt do we want to note this one in the release notes?

@zhyatt zhyatt mentioned this pull request Jun 4, 2020
16 tasks
@zhyatt
Copy link
Collaborator

zhyatt commented Jun 4, 2020

@guilhermelawless That seems reasonable. Added to items in nanocurrency/nano-docs#271

@wezrule wezrule merged commit 8441aa2 into nanocurrency:develop Jun 4, 2020
@wezrule wezrule deleted the add_logging_section branch June 4, 2020 14:29
@zhyatt zhyatt added the logging label Jun 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants