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

Fix logging a RoutingNode object, log an object with a good .toString instead #9863

Merged
merged 1 commit into from
Feb 25, 2015

Commits on Feb 25, 2015

  1. Add a .toString() method to RoutingNode

    Previously this would log:
    
    ```
    [2015-02-24 11:13:45,105][TRACE][cluster.routing.allocation.allocator] [Poltergeist] Try moving shard [[test][2], node[HFn4dJ7fQAyfSAB8BquaSQ], [R], s[STARTED]] from [org.elasticsearch.cluster.routing.RoutingNode@6df2c498]
    ```
    
    Now it will log:
    
    ```
    [2015-02-25 11:32:45,182][TRACE][cluster.routing.allocation.allocator] [Solarr] Try moving shard [[my_index][2], node[HDhbU4D9Rx27MSr_72bmWQ], [P], s[STARTED]] from [routingNode ([Solarr][HDhbU4D9Rx27MSr_72bmWQ][Xanadu.domain][192.168.0.4], [5 assigned shards])]
    ```
    dakrone committed Feb 25, 2015
    Configuration menu
    Copy the full SHA
    58cac3d View commit details
    Browse the repository at this point in the history