javajgroups

Removing JGroups startup message : GMS


On startup JGroups 2.7.0. GA writes to System.out a message along the lines of:

---------------------------------------------------------
GMS: address is 10.0.3.35:48641 (cluster=blabla)
---------------------------------------------------------

I want to either suppress it or redirect it using Log4j ( which the rest of the framework uses ).

Ideas?


I don't want to redirect System.out by itself since that usually causes more trouble than it's worth.


Solution

  • You can suppress the printing of the GMS address by setting in your XML

    <pbcast.GMS print_local_addr="false" ...>

    Works on JGroups 2.5.1 as well.