Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-1796

Fix flush problem with integration of commons-logging output

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 3.2.13, 3.3.6, 3.5
    • 3.2.13
    • None

      The commons-logging output which appears in test case output files does not have line termination processed correctly. We end up with text like this:

      120665 [TRACE] GMS: - A: no initial members discovered: creating group as first member120666 [DEBUG] GMS: - A: installing view [A|0] [A]120666 [DEBUG] GMS: - created group (first member). My view is [A|0], impl is org.jgroups.protocols.pbcast.CoordGmsImpl
      

      This makes reading the logging output hard to read.

      We want it to look like this:

      120665 [TRACE] GMS: - A: no initial members discovered: creating group as first member
      120666 [DEBUG] GMS: - A: installing view [A|0] [A]
      120666 [DEBUG] GMS: - created group (first member). My view is [A|0], impl is org.jgroups.protocols.pbcast.CoordGmsImpl
      

      Th solution is to implement flush() as a method which simply appends a null string with CR/LF applied as well to the current collected sysout and syserr.

            rachmato@redhat.com Richard Achmatowicz
            rachmato@redhat.com Richard Achmatowicz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: