8000 Log lines are duplicated if using multiple Gravity nodes in a single process · Issue #181 · aphysci/gravity · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Log lines are duplicated if using multiple Gravity nodes in a single process #181

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

Open
mbarger99 opened this issue Sep 7, 2021 · 0 comments

Comments

@mbarger99
Copy link
Contributor

If you start multiple GravityNode's in single process, all lines logged to the static logging API are duplicated. You get 1 instance of each line per GravityNode, so if you have 4 nodes, you'll get the same line logged 4 times.

There is a workaround here, although it's not perfect. You can configure logging to be off for all but one of the nodes. The name of node that is configured for logging will be used in the log messages.

[general]
LocalLogLevel=none
ConsoleLogLevel=none
NoConfigServer=true
ServiceDirectoryURL="tcp://localhost:5555"

[SomeNode]
LocalLogLevel=debug
ConsoleLogLevel=debug

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

No branches or pull requests

1 participant
0