Skip to content

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

@mbarger99

Description

@mbarger99

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions